[英]JMeter JSR 223 language js Vs javascript
About JSR 223 Sampler languages, 关于JSR 223采样器语言,
I can choose between 我可以选择
javascript (ECMAScript ECMA 262 Edition 51 / Oracle Nashorn 1.8.0_144) javascript(ECMAScript ECMA 262 Edition 51 / Oracle Nashorn 1.8.0_144)
and 和
js (ECMAScript ECMA 262 Edition 51 / Oracle Nashorn 1.8.0_144) js(ECMAScript ECMA 262 Edition 51 / Oracle Nashorn 1.8.0_144)
and 和
nashorn (ECMAScript ECMA 262 Edition 51 / Oracle Nashorn 1.8.0_144) nashorn(ECMAScript ECMA 262 Edition 51 / Oracle Nashorn 1.8.0_144)
What's the difference? 有什么不同? it seems that they are the same as JavaScript. 它们似乎与JavaScript相同。
Can I edit the list somehow? 我可以以某种方式编辑列表吗? remove unused script languages? 删除未使用的脚本语言
(There's also ecmascript language with same properties) (还有同样属性的ecmascript语言)
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 . 我不认为您可以从那里删除条目,因为使用ScriptEngineManager.getEngineFactories()方法即时填充下拉列表,该方法在JMeter类路径中执行可用脚本引擎的发现。
With regards which language to use js
or javascript
the answer is none . 至于哪一种语言使用js
或javascript
答案是没有 。 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. 建议在JMeter测试中使用Groovy语言进行任何形式的脚本编写,因为可以编译和缓存良好的Groovy脚本,因此它们的性能非常类似于“普通”Java代码,而其他脚本语言每次都被解释被称为高负载时,使用JavaScript的JSR223测试元素可能会成为性能瓶颈并破坏您的测试。
References: 参考文献:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.