Python是Jmeter性能测试的好选择吗?

发布于 2025-02-03 16:09:01 字数 1456 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽你眉间 2025-02-10 16:09:01

Beanshell不支持Python。

您可以将python支持添加到 jsr222测试元素通过下载 =“ https://www.jython.org/” rel =“ nofollow noreferrer”> jython jar并将其放到

​“ nofollow noreferrer”> “在此处输入映像说明”

但是它不是“好选择” JSR223测试元素中将触发Jython引擎的加载并解释脚本。

推荐的脚本语言为 grovy> grovy 作为groovy脚本脚本的性能将更高,您将能够在同一硬件上实现更多的吞吐量。

Beanshell doesn't support Python.

You can add Python support to JSR223 Test Elements by downloading Jython jar and dropping it to JMeter Classpath this way you will get Python in the language dropdown:

enter image description here

However it will not be the "good choice" as each invocation of the JSR223 Test Element will trigger the loading of Jython engine and interpreting the script.

The recommended scripting language is Groovy as Groovy scripts can be compiled and cached so the performance of the script will be much higher and you will be able to achieve more throughput on the same hardware.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文