JMeter JSR 223 language js Vs javascript

前端 未结 1 552
野趣味
野趣味 2021-01-21 06:32

About JSR 223 Sampler languages,

I can choose between

javascript (ECMAScript ECMA 262 Edition 51 / Oracle Nashorn 1.8.0_144)

相关标签:
1条回答
  • 2021-01-21 06:50

    I don't think you will be able to remove entries from there as the drop down is being populated on-the-fly using ScriptEngineManager.getEngineFactories() method which performs discovery of available scripting engines in JMeter Classpath.

    With regards which language to use js or javascript the answer is none. It is recommended to use Groovy language for any form of scripting in JMeter tests as well-behaved Groovy scripts can be compiled and cached therefore their performance will be pretty like to "normal" Java code while other scripting languages are being interpreted each time they are being called so when it comes to high loads your JSR223 test element using JavaScript might become a performance bottleneck and ruin your test.

    References:

    • JMeter Best Practices: JSR223 Elements
    • Apache Groovy - Why and How You Should Use It
    0 讨论(0)
提交回复
热议问题