JMeter, Locust, k6 and Gatling

Four load tools cover most of the work: JMeter, Locust, k6 and Gatling. They send HTTP and a few other protocols from many virtual users and write a report; they differ in what a test is written in, in what the tool needs to run and in who on the team can read the test. None of the other three is installed in this container, so this page compares them and runs none of them; every JMeter number in the course comes from a plan that was really run.

The four in one table

The table says what each tool is, not which one is faster: a throughput number from one machine says more about the machine than about the tool.

The four load tools
ToolA test is written inRuns onProtocolsWhat it leaves behind
JMeteran XML plan, built in a GUI or typeda JVM, one command headlessHTTP, JDBC, JMS, FTP, mail, LDAP, SOAP, raw TCPa .jtl file and an HTML dashboard
LocustPython: a class with @task methodsPython, one process per workerHTTP, and whatever a Python client speaksa web UI and a CSV of the run
k6JavaScript modulesa single Go binaryHTTP, WebSocket, gRPCa summary and JSON, CSV or the k6 cloud
Gatlinga Scala or Java DSLa JVMHTTP, WebSocket, JMS, gRPCan HTML report

When JMeter is the right one

When another tool is the better fit

The honest summary: JMeter is the one with a GUI, the widest protocol list and the oldest plugin ecosystem, and it pays for that with a JVM per run and a plan that is easier to generate than to read. The others are smaller, code-first and younger. A team that already has JMeter plans should keep them; a team that writes Python all day should try Locust before it writes XML.

What this image has

Only JMeter is installed, and the commands below say so rather than pretend otherwise. The command -v of a program that is not there prints nothing, so each line falls back to a sentence.

command -v jmeter || echo "jmeter is not installed"

/opt/jmeter/bin/jmeter

command -v locust || echo "locust is not installed"

locust is not installed

command -v k6 || echo "k6 is not installed"

k6 is not installed

command -v gatling || echo "gatling is not installed"

gatling is not installed

Related

Автор статьи: Arthur Isaev