Forum Discussion
I have a question:
Are you actually doing the "conversion" of the project (right click on project, select Convert to JavaScript, make code modifications) or are you doing all this conversion manually?
The reason I ask is, if you are doing the conversion using the built in convert function, what does performance look like if you simply port the code over to a new project configured to use JavaScript with non of that conversion? I don't know if it really makes a difference but more of a curiousity thing.
Hi Robert,
I did the conversion of the project using right click project and convert to JavaScript method. However, I think the performance issue is with JavaScript engine in TC.
In my project, I did investigate the performance issue (before contacting support) and narrowed it down to data comparisons, actual vs expected. I was using aqObject.CompareProperty(pStrExpectedVal, cmpEqual, pStrActualVal, false, lmNone) for the data comparisons and then changed it to equal(pStrExpectedVal, pStrActualVal) and it made no difference.
To do some base-line comparisons between the JScript and JavaScript engines, I created a for loop with 100 iterations to do:
1) a simple calculation,
2) compare the calculated value with a fixed value
3) output a line with Log.Message() if the comparison failed
It took about twice the time to run in JavaScript than in JScript. Increasing the number of iterations made it worse in JavaScript!
- tristaanogre8 years agoEsteemed Contributor
Huh... very interesting. Well, here's hoping Support/Development at SmartBear corrects this. I like both JavaScript and JScript but it would be nice to keep using JavaScript as that is where the technology development is happening.