JMeter JSR 223 语言 js 与 javascript [英] JMeter JSR 223 language js Vs javascript

查看:23
本文介绍了JMeter JSR 223 语言 js 与 javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于 JSR 223 采样器语言,

About JSR 223 Sampler languages,

我可以选择

javascript (ECMAScript ECMA 262 版本 51/Oracle Nashorn1.8.0_144)

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

js(ECMAScript ECMA 262 版本 51/Oracle Nashorn 1.8.0_144)

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

nashorn(ECMAScript ECMA 262 版本 51/Oracle Nashorn 1.8.0_144)

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

有什么区别?看起来它们和 JavaScript 是一样的.

What's the difference? it seems that they are the same as JavaScript.

我可以以某种方式编辑列表吗?删除未使用的脚本语言?

Can I edit the list somehow? remove unused script languages?

(也有具有相同属性的 ecmascript 语言)

(There's also ecmascript language with same properties)

推荐答案

我认为您无法从那里删除条目,因为下拉列表正在使用 ScriptEngineManager.getEngineFactories() 方法执行发现JMeter Classpath 中可用的脚本引擎.

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.

关于使用哪种语言 jsjavascript,答案是.对于 JMeter 测试中的任何形式的脚本,建议使用 Groovy 语言 作为表现良好的 Groovy 脚本可以编译和缓存,因此它们的性能将非常类似于普通"Java 代码,而其他脚本语言在每次被调用时都会被解释,因此当涉及高负载时,使用 JavaScript 的 JSR223 测试元素可能会成为性能瓶颈和毁了你的考试.

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.

参考文献:

这篇关于JMeter JSR 223 语言 js 与 javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆