Tsung is an open source, distributed load testing tool written in Erlang. It started in 2001 as a stress tool for Jabber servers, added HTTP in 2003, and its Erlang runtime lets one machine simulate thousands of users. Teams look for Tsung alternatives for five reasons: they want tests in a language their developers already write instead of an XML file, load generators they do not wire together over SSH, reports without a separate Perl step, a pass/fail result their CI/CD pipeline can read, and a project with frequent releases. Tsung shipped version 1.8.0 in March 2023, five and a half years after 1.7.0. Pick the replacement by the protocol you test and by who writes the tests. For HTTP load testing as code, look at Gatling, k6 or Locust. For Tsung's arrival-rate phases in a YAML file, look at Artillery. For database and LDAP tests, look at Apache JMeter or pgbench. For multi-step HTTP and gRPC scenarios on managed cloud load generators, look at PFLB.
At a glance
- The short answer. Keep Tsung for an XMPP server or when one Erlang cluster has to speak several protocols at once. Move when your team wants tests as code, pass/fail checks in CI, or load generation it does not have to run itself.
- The closest load model. Tsung starts new users at an arrival rate in timed phases. Artillery phases (
arrivalRate), the k6 arrival-rate executors and the open workload model in Gatling start users the same way; Vegeta holds a constant request rate. - Beyond HTTP. Apache JMeter tests databases over JDBC and LDAP directories, and pgbench is the benchmark that ships with PostgreSQL. For the messaging protocols Tsung covers, see the protocol map below.
- Managed cloud. In PFLB you assemble HTTP and gRPC scenarios visually or import HAR, Postman and JMeter files; PFLB hosts the load generators and grades each run with SLA rules.
- Sources. For every claim about another tool we read that project's own manual, README or repository on 30 November 2026. PFLB is on the list too: we make a cloud load testing platform and sell performance testing services, with 150+ performance engineers and 300+ client companies since 2008.
What Tsung Does Well and Where Teams Stop
The Tsung manual states its main strength: Tsung "can simulate a huge number of simultaneous users per physical computer", thousands of users on a single CPU. Its introduction credits Erlang, built to support hundreds of thousands of lightweight processes in one virtual machine, lists HTTP, WebDAV, SOAP, PostgreSQL, MySQL, AMQP, MQTT, LDAP and Jabber/XMPP, and reports an ejabberd scalability test with 2,000,000 concurrent users. The documentation also lists SSL support and a raw plugin for TCP, UDP or SSL messages. A session can pull values out of a server response and send them back in the next request, several session types can run in one test with a probability each, and think times and arrival rates can follow an exponential distribution, which makes the traffic look like real users rather than a loop. Erlang agents, SNMP or Munin collect CPU, memory and network data from the servers under test.
Five things push teams to another load testing tool:
- XML instead of code. The scenario, the servers, the client machines and the load all live in one XML file,
tsung.xml. A recorder writes sessions for HTTP, WebDAV and PostgreSQL. XML tags handle loops, conditions andmatchchecks on responses, but a value you have to compute yourself means writing Erlang, a language few QA teams use. - A cluster you build yourself. For a distributed test, the controller connects to every client machine over SSH without a password, using a key without a passphrase or ssh-agent; rsh also works (installation guide), and the FAQ lists Erlang or Tsung missing from a client node, or installed in a different path, as causes of a timeout when a test starts. You size the load with
weight,maxusersandcpusettings per client host. - Reports from a log directory. After the run,
tsung_stats.pl(Perl, with gnuplot) turns the log directory into an HTML report. Since version 1.6.0 the controller also serves a dashboard on port 8091 that can generate the report on the fly, and by default it stops when the test ends (reports). - No pass/fail result for the run. A
matchcheck counts matching responses and can stop a session or the whole test, but we found no setting in the documentation that passes or fails a run on response time or error rate. A CI job needs its own script that reads the statistics and decides whether the build broke. - A slow release cycle. Version 1.7.0 came out in August 2017, and the last release, 1.8.0, in March 2023 (release notes on the project website). The source code in the GitHub repository last changed in March 2026, with fixes for newer Erlang/OTP versions, and the online documentation still carries the 1.7.0 version label. The manual calls the MySQL, WebSocket, AMQP and MQTT plugins experimental.
Tsung Alternatives Compared: Key Features of 8 Load Testing Tools
PFLB is the one cloud service in the list; the other seven are open source tools you install and run. They differ in how you write the test, how they start virtual users and where the load comes from.
| How you define the test | How users arrive | Where the load runs | Choose it when | |
|---|---|---|---|---|
| Tsung (the baseline) | XML file, Erlang for custom logic | Arrival phases (open model) | Erlang client nodes you start over SSH | You test XMPP or several protocols from one cluster |
| PFLB | Use cases assembled in a visual editor from HTTP and gRPC requests, or imported HAR, Postman, Insomnia and .jmx files | Stable or scalability load profile | Cloud generators hosted by PFLB; you pick the region for a run | You want HTTP and gRPC journeys checked against SLAs without running generators |
| Gatling | Code in Java, Kotlin, Scala, JavaScript or TypeScript | Open and closed workload models | Your machine or CI; Gatling Enterprise for managed generators | Developers want simulations in the repository |
| Grafana k6 | JavaScript test scripts | Closed-model executors, or arrival-rate executors for the open model | Your machines, Kubernetes or Grafana Cloud k6 | You want thresholds that fail the CI job |
| Apache JMeter | .jmx test plans built in a GUI, run in CLI mode | Thread groups in the test plan | Your servers, one or many | You test databases over JDBC, LDAP or other non-web protocols |
| Locust | Python code | Users you set and change during the run | Your machines, one or many | Your team writes Python |
| Artillery | YAML, JavaScript or TypeScript | Phases with arrivalRate (open model) | Your machine, or your AWS or Azure account | You want Tsung-style phases in a short file |
| Vegeta | Targets from stdin or a file; also a Go library | Constant request rate | One machine, or several you split the rate across | You need a fixed rate against HTTP endpoints |
| pgbench | Built-in TPC-B-like test or your own SQL scripts | Concurrent sessions, or a target transaction rate with -R | The machine you run it on | You load test a PostgreSQL server |
1. PFLB: When You Want HTTP Load Without Running the Cluster
Pick PFLB over Tsung when your system speaks HTTP or gRPC and you would rather design the user journey than maintain Erlang nodes and SSH keys. In PFLB you assemble a use case in a visual editor: HTTP or gRPC requests grouped into transactions, with conditions and loops where the flow branches (JMeter in the cloud). Parameters come from CSV files or literal values, the counterpart of Tsung's file-based dynamic variables. Tsung's proxy recorder has several counterparts too: a HAR file saved from the browser, a Postman or Insomnia collection, Google Analytics data, or an existing JMeter .jmx file. The supported list for imported JMX scripts includes JDBC Request, LDAP Request and two WebSocket sampler plugins, useful if some Tsung sessions query a database or a directory.
Each arrivalphase turns into a load profile. In a stable test, PFLB ramps the virtual users up, keeps them for the duration you choose and ramps them down; in a scalability test it keeps adding users in steps to find the most load the system can take. PFLB runs the generators in its own cloud: you pick a region per test run, and per container for imported JMX scripts. Instead of a script that parses Tsung logs, you define SLA rules for the test, a transaction, a single request or system metrics, and each run gets a passed or failed status. Test and system metrics appear in Grafana dashboards while the run goes and after it ends. PFLB can generate an AI report for a run or compare two runs, and Jenkins or GitLab CI can start a test from a pipeline.
Know the limits first: PFLB does not read Tsung XML, so you rebuild the scenario, and it sends protocol-level traffic rather than driving real browsers. To see how a recorded session turns into a test, read our HAR to JMX guide. Teams that want the whole job done for them can hand it to our performance testing services engineers, who plan the test, run it and explain what they found.
2. Gatling: When You Want Tsung's Efficiency in Code
Choose Gatling instead of PFLB when your developers want load testing as code in the same repository as the application, and you want an engine that, like Tsung, packs many users onto one machine. The Gatling README describes virtual users as "lightweight messages on a non-blocking engine built on Netty, not operating system threads". You write simulations in Java, Kotlin or Scala, or in JavaScript and TypeScript with the JavaScript SDK, run them through Maven, Gradle, sbt or npm, and get an HTML report with percentiles, throughput over time and errors per request. Assertions on response times and error rates fail the build.
Gatling supports open and closed workload models, so a Tsung arrival phase maps to an open injection profile. The Recorder turns a browser session or a HAR file into a simulation, and feeders read CSV, JSON or database data. Check the protocol licensing before you migrate: HTTP/1.1, HTTP/2, WebSocket and Server-Sent Events ship under Apache 2.0, while gRPC, GraphQL and JDBC come as separate components under the Gatling Enterprise Component License, capped at 5 concurrent users and 5 minute tests in the Community Edition. Gatling Enterprise adds managed or private load generators, live dashboards and run comparison. Our Gatling alternatives guide looks at the same choice from the other side.
3. Grafana k6: When You Want Pass/Fail Thresholds in CI
Choose k6 instead of PFLB when the test should live in JavaScript next to the code and decide on its own whether a pipeline passes. Grafana k6 is an open source load testing tool from Grafana Labs. Its protocols page lists HTTP/1.1, HTTP/2, WebSockets and gRPC, and a browser API adds browser-level checks next to protocol load.
Two features answer Tsung's gaps. Thresholds set pass/fail criteria, such as a 95th percentile response time or an error rate, and k6 exits with a non-zero code when one fails. For the load model, some k6 executors use a closed model, where a virtual user starts its next iteration only after the last one ends; the arrival-rate executors, constant-arrival-rate and ramping-arrival-rate, start iterations at a set rate, as Tsung starts sessions. To go past one machine, you can use the k6 Operator on Kubernetes or Grafana Cloud k6, both described in the k6 documentation. See our k6 alternatives guide for the reverse question.
4. Apache JMeter: When Your Tsung Tests Go Beyond Web Traffic
Choose JMeter instead of PFLB when you need to run the test on your own servers and cover protocols outside HTTP. Apache JMeter is a 100% Java application, and its feature list includes HTTP and HTTPS, SOAP and REST web services, FTP, databases via JDBC, LDAP, mail over SMTP, POP3 and IMAP, TCP and native commands. That list covers Tsung's PostgreSQL, MySQL and LDAP sessions with one tool, and community plugins add more.
You build a test plan in the GUI, often by recording from a browser, and pass values from one response to the next request with extractors for HTML, JSON or XML. The getting started guide says to use the GUI for building the plan and CLI mode for load testing, which writes CSV or XML results and can generate an HTML report. JMeter supports distributed testing across servers you run, so the SSH-and-nodes work from Tsung moves to JMeter's remote engines. If you want the same JMX file on cloud generators, our JMeter alternatives guide compares the options.
5. Locust: When Your Team Writes Python
Choose Locust instead of PFLB when the people writing tests know Python and want a load test to be a normal Python program. According to the Locust documentation, it is an open source tool for HTTP and other protocols in which every simulated user executes your code, with its loops, conditions and imported libraries. For a team that reaches for Erlang functions when Tsung's XML tags run out, that is the biggest change.
You start it from the command line or from a web UI with live charts of throughput, response times and errors, where you can also change the user count mid-test. In CI it runs without the UI. For heavy loads it spreads users across several machines that you supply, and its documentation claims support for hundreds of thousands of concurrent users. To weigh it against JMeter, read our JMeter vs Locust comparison.
6. Artillery: When You Want Tsung's Phases in YAML
Choose Artillery instead of PFLB when you like Tsung's load model and want it in a short file your developers can read. In the Artillery core concepts, a load phase defines user arrivals over time with a duration and an arrivalRate, the number of new virtual users per second, and each virtual user runs one scenario. That is the same idea as a Tsung arrivalphase with arrivalrate. Scenario weight plays the role of Tsung session probability (test script reference).
Scripts are YAML, JavaScript or TypeScript, and you can call any npm package from them. HTTP, WebSocket and Socket.IO work without plugins; the README also lists gRPC and Playwright tests with headless browsers. For scale, Artillery has distributed load testing built in: it runs load generators on AWS Lambda, AWS Fargate or Azure Container Instances in your own cloud account. The ensure plugin adds SLO checks. Most of the code is under MPL 2.0; the README notes that some Azure modules use a BSL license, and that commercial or production use on Azure needs a commercial license. See our Artillery alternatives guide for tools on the other side.
7. Vegeta: When You Need a Constant Request Rate
Choose Vegeta instead of PFLB when all you need is a fixed rate of HTTP requests, fired from a terminal or from Go test code. Its README states the purpose in one line: Vegeta exists to drill HTTP services "with a constant request rate". A run takes a -rate and a -duration; the report puts the rate Vegeta managed to hold next to the throughput the server delivered, which shows whether the server kept up. Avoiding coordinated omission is on its feature list.
Vegeta has no sessions or think times, so it replaces a Tsung test of single requests, not a user journey. You feed it targets on stdin or from a file, either in a plain HTTP format or as JSON objects with method, URL, headers and body. vegeta report prints text, JSON or histogram output, and vegeta plot draws an HTML chart. Past what one host can push, the README shows how to divide the rate across several machines and merge their result files, a manual version of Tsung's client nodes.
8. pgbench: When Tsung Was Testing PostgreSQL
Choose pgbench instead of PFLB when the system under test is a PostgreSQL server and you want a tool from the PostgreSQL project itself. The pgbench documentation describes "a simple program for running benchmark tests on PostgreSQL" that runs the same sequence of SQL commands over and over in concurrent database sessions and reports the average transaction rate. The default test is loosely based on TPC-B, with five SELECT, UPDATE and INSERT commands per transaction.
For a Tsung user, the useful options are -c (concurrent sessions), -j (worker threads), -T (run time), -P (a progress line every few seconds with transactions per second and latency) and -R, which targets a transaction rate instead of running as fast as possible. -f adds your own transaction script, and a @weight after the file name sets how often it runs relative to other scripts, close to Tsung's session probabilities. pgbench tests the database alone, so pair it with an HTTP tool when the database sits behind an application.
Tsung Protocols: Where Each One Goes
Tsung's protocol list is wider than most load testing tools, so check each protocol you use before you pick a replacement. This map covers the sources we read:
| Tsung protocol | Replacement in the sources we read |
|---|---|
| HTTP, HTTPS, SOAP | Every tool here except pgbench |
| WebDAV | Check that the new tool can send the WebDAV methods you use, such as PROPFIND and LOCK |
| WebSocket | Gatling, k6, Artillery |
| PostgreSQL | pgbench; JMeter over JDBC |
| MySQL | JMeter over JDBC |
| LDAP | JMeter |
| MQTT | emqtt-bench, an Erlang MQTT benchmark from the EMQX team; Gatling MQTT component (capped in the Community Edition) |
| AMQP | Gatling third-party plugin, according to the Gatling README |
| Jabber/XMPP | No XMPP engine in the sources we read; the Artillery WebSocket engine can declare an xmpp subprotocol |
emqtt-bench is the nearest relative to Tsung on this page: it is written in Erlang, it supports MQTT v5.0 over TCP, TLS, WebSocket or QUIC, and it has separate conn, pub and sub benchmarks with a connection rate setting. It does not run HTTP scenarios, so it replaces only the MQTT part of a Tsung test.
How to Choose Among Tsung Alternatives by Protocol and Load Model
Start from the protocol, then from the person who writes the tests. If you test an XMPP server or need several protocols in one test, keep Tsung and accept the XML. If your Tsung tests are HTTP, choose by language: Java or Kotlin for Gatling, JavaScript for k6, Python for Locust, YAML for Artillery, test plans for JMeter. For database or LDAP sessions, JMeter covers the most in one tool, and pgbench is the direct choice for PostgreSQL alone.
Keep Tsung's load model in mind when you switch. A Tsung test starts new users at an arrival rate, so a slow server faces the same flow of arrivals and the queue grows. A closed model waits for each user to finish before starting the next iteration, which takes pressure off a slow server and hides the problem. Use the arrival-rate options in Artillery, k6 or Gatling to keep the comparison honest. Then decide where the load runs: apart from PFLB, Grafana Cloud k6, Gatling Enterprise and Artillery in your cloud account, you provide the machines yourself. For HTTP and gRPC, PFLB removes the machine work: it hosts the generators, checks SLA rules and streams results to Grafana, and our engineers can run the whole test for you.
Moving a Tsung Load Profile to Another Tool
Most teams start by porting one load profile they already trust. Here is an example. You start Tsung with tsung -f tsung.xml start, and the phase below adds 10 new users per second for 10 minutes. The closest forms in Artillery and k6 follow it:
Tsung (tsung.xml):
<arrivalphase phase="1" duration="10" unit="minute">
<users arrivalrate="10" unit="second"/>
</arrivalphase>
Artillery:
phases:
- duration: 600
arrivalRate: 10
k6:
scenarios: { open_model: {
executor: 'constant-arrival-rate',
rate: 10, timeUnit: '1s', duration: '10m',
preAllocatedVUs: 200 } }
In Artillery a new virtual user runs one scenario; in k6 the rate starts iterations of the default function, so one iteration should hold one Tsung session. preAllocatedVUs must cover the users in flight at the same time: 10 arrivals per second with sessions of about 20 seconds need about 200. The other Tsung settings map like this:
| Tsung | Artillery | k6 | pgbench |
|---|---|---|---|
arrivalphase with arrivalrate | phases with arrivalRate | constant-arrival-rate executor | -R rate |
session probability | scenario weight | split the rate across scenarios | -f file@weight |
thinktime | think step | sleep() | \sleep in the script |
dyn_variable from a response | capture | values from the response in code | variables in the script |
| client hosts over SSH | Lambda, Fargate or Azure ACI | k6 Operator or Grafana Cloud k6 | one machine |
Then run the old and the new test against the same server at the same arrival rate, and compare throughput and the 95th percentile response time before you trust the new numbers. Tsung reports transactions you named with the transaction tag, so give the same names to steps in the new tool.
Tsung Alternatives: FAQ
What is the best alternative to Tsung?
It depends on the protocol and on your team. For HTTP load testing as code, use Gatling (Java, Kotlin, Scala, JavaScript), k6 (JavaScript) or Locust (Python). For Tsung-style arrival phases in YAML, use Artillery. For databases and LDAP, use JMeter or pgbench. For HTTP and gRPC user journeys on managed cloud generators with SLA rules, use PFLB.
Is Tsung still maintained?
Slowly. The last release, version 1.8.0, came out on 2 March 2023, the first since 1.7.0 in August 2017. The source code on GitHub got fixes for newer Erlang/OTP versions in March 2026, and the online documentation still carries the 1.7.0 label (checked 30 November 2026).
Which Tsung alternative uses the same load model?
Artillery is the closest: its phases set an arrivalRate of new virtual users per second, as Tsung's arrivalphase does. k6 has constant-arrival-rate and ramping-arrival-rate executors, Gatling supports open workload models, and Vegeta and pgbench (-R) hold a fixed request or transaction rate.
Can I load test PostgreSQL or LDAP without Tsung?
Yes. pgbench ships with PostgreSQL and runs its own TPC-B-like test or your SQL scripts. Apache JMeter tests databases over JDBC, including PostgreSQL and MySQL, and LDAP directories with its LDAP request.
Which Tsung alternative works in a CI/CD pipeline?
k6 is the most direct: a failed threshold ends the run with a non-zero exit code. Gatling assertions fail a Maven, Gradle, sbt or npm build, Artillery adds checks with its ensure plugin, JMeter runs in CLI mode, and PFLB launches from Jenkins or GitLab CI and gives every run a passed or failed status from its SLA rules.
Get Help With Your Load Test
Moving off Tsung is a good moment to check that the test still models your real traffic. Our performance engineers can rebuild your Tsung scenarios, run the load and go through the numbers with you. Describe your system in the form below.






