Is python a good choice to go with JMeter performance testing?

2.8k views Asked by At

I know a little bit of python and I think its easier to understand than java. So I want to continue with python even while using JMeter. Is python a good choice to go with JMeter? I know that Beanshell supports Python but the related help documentation I did not came across. Maybe someone here can share the link? Anything related with 'python + jmeter' is welcome! Thank you very much!

1

There are 1 answers

2
Dmitri T On

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.