Forum Discussion

nyczmagix's avatar
nyczmagix
Occasional Contributor
14 years ago

Performance: Assembly (CLR Bridge) vs Scripts

In TestComplete, is it better to write commonly used functions/classes in the preferred scripting language (e.g. VBScript), or write them in an assembly and use them via CLR Bridge?



My thought is the speed of the script interpretation cannot match the execution of compiled code. However, since there's probably overhead for using the CLR Bridge, in the end ...which one is the winner in terms of performance ...TestComplete interpreting scripts or TestComplete calling compiled code via CLR Bridge? Assume a situation where the calls to these classes/functions are frequently made.

1 Reply


  • Hi Peter,





    We have not performed performance comparison for the two approaches you described, so there is nothing I can tell you for sure about that. However, I believe the results will vary greatly for each specific use case, depending on the implementation logic and capabilities of the specific language. Feel free to share your results if you decide to arrange some tests in this direction.