# Locust vs Tsung

> Locust is an open source, self-hosted load testing tool from Locust authors, scripted in Python. Tsung is an open source, self-hosted protocol and API load tool from Tsung community, scripted in Erlang, XML. The practical split is the authoring language: Python for Locust, Erlang, XML for Tsung.

- Canonical: https://perf.jmeter.ai/vs/locust-vs-tsung/
- Compared: [Locust](https://perf.jmeter.ai/tools/locust/) · [Tsung](https://perf.jmeter.ai/tools/tsung/)

## Verdict
Both cover HTTP, HTTPS. On recorded coverage Tsung is the wider of the two (5 protocols against 3), which matters only if your workload actually uses the extra ones. Team language and existing tooling usually settle Locust against Tsung. Run the same scenario on both before you standardize; the rows below only tell you what is true on paper.

## Specs
| Field | Locust | Tsung |
| --- | --- | --- |
| Vendor | Locust authors | Tsung community |
| Category | Load Testing | Protocol/API Load |
| License | Open Source | Open Source |
| Deployment | Self-hosted | Self-hosted |
| Status | Active | Active |
| First released | 2011 | 2001 |
| Pricing | Free; MIT License. | Free; GPL-2.0 license. |
| Scripting | Python | Erlang, XML |
| Protocols | HTTP, HTTPS, WebSocket | HTTP, HTTPS, WebDAV, LDAP, XMPP |
| OS support | Windows, macOS, Linux | Linux, macOS |

## How to choose
- Only Locust records support for WebSocket — one hard requirement there decides the pair on its own.
- Only Tsung records support for WebDAV, LDAP, XMPP — one hard requirement there decides the pair on its own.
- Match the authoring language to the team: Locust means Python, Tsung means Erlang, XML.
- Open the Test Rig to compare license, deployment, protocol and OS rows side by side.

---
Curated by NaveenKumar Namachivayam (QAInsights) · methodology: https://perf.jmeter.ai/about/#methodology · corrections: https://github.com/QAInsights/Performance-Testing-Tools/issues/new?title=Tool%20submission%3A%20&body=Tool%20name%3A%20%0AOfficial%20URL%3A%20%0AWhat%20should%20be%20added%20or%20corrected%3F%20%0A