Forum Discussion
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!
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.
Related Content
Recent Discussions
- 2 days agoGane195