Forum Discussion
AlexKaras
14 years agoCommunity Hero
Hi Alex,
Can you comment as for the performance penalties when using .Net classes from within scripts in TC?
It is my understanding that a penalties should include, at least, .Net initialization and inter-process communication between script runtime and .Net runtime. Maybe some other penalties that I missed.
I think that inter-process communication (including .Net objects marshaling, conversion and compilation) occurs for every script line token that uses .Net class, so this is an area where tester cannot do much to improve the performance, isn't it? Hopefully, the performance degradation can be ignored, but maybe you have some figures?
Can you comment .Net initialization part? Does it occur when the test execution is started or at some other moment of time? Does it occur once for the whole test project or every time when the execution of test item is started during the test run?
My general feeling is that (generally) action implemented via script is more efficient when compared to the implementation via .Net classes. Any comments on this?
Thank you.
Can you comment as for the performance penalties when using .Net classes from within scripts in TC?
It is my understanding that a penalties should include, at least, .Net initialization and inter-process communication between script runtime and .Net runtime. Maybe some other penalties that I missed.
I think that inter-process communication (including .Net objects marshaling, conversion and compilation) occurs for every script line token that uses .Net class, so this is an area where tester cannot do much to improve the performance, isn't it? Hopefully, the performance degradation can be ignored, but maybe you have some figures?
Can you comment .Net initialization part? Does it occur when the test execution is started or at some other moment of time? Does it occur once for the whole test project or every time when the execution of test item is started during the test run?
My general feeling is that (generally) action implemented via script is more efficient when compared to the implementation via .Net classes. Any comments on this?
Thank you.