Softwr

Testing · head to head

Locust vs Trunk Code Quality

Locust logo

Locust

Testing

Open-source load testing tool where scenarios are written in plain Python

From
Free
Free plan
Yes
Trunk Code Quality logo

Trunk Code Quality

Developer Tools

Metalinter that runs and manages linters, formatters and security scanners

From
Free
Free plan
Yes

The short version

  • Locust is an MIT-licensed load testing tool.
  • Both are free.
  • Only Locust lists test scenarios written in Python; only Trunk Code Quality lists version pinning through trunk.yaml.
  • Where Locust falls short: scenarios must be written in Python; there is no graphical recorder.
  • Where Trunk Code Quality falls short: private repositories with more than five active committers need a paid licence.

How do Locust and Trunk Code Quality differ?

Locust and Trunk Code Quality differ on pricing model (Open-source against Freemium), platforms and category (Testing against Developer Tools). Only the attributes on which Locust and Trunk Code Quality actually diverge.

Attributes where Locust and Trunk Code Quality differ
AttributeLocustTrunk Code Quality
Pricing modelOpen-sourceFreemium
PlatformsAPImacOS, Linux, Windows
CategoryTestingDeveloper Tools

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Locust.

Which features does each one have?

They share no listed features; 8 appear only for Locust and 8 only for Trunk Code Quality. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Locust

  • Test scenarios written in Python
  • Distributed load generation
  • Real-time web UI
  • Headless mode for CI/CD
  • Lightweight greenlet users on gevent
  • Extensible with custom load shapes and reporting
  • VS Code extension
  • Azure Load Testing support

Only in Trunk Code Quality

  • Installs and runs over 100 linters and formatters
  • Version pinning through trunk.yaml
  • Hold the Line checks on new changes only
  • Background daemon that precomputes results
  • VS Code and Neovim editor integration
  • GitHub integration for pull request checks
  • Security scanning tools such as trivy and gitleaks
  • Runs in any CI environment

What is each one used for?

Locust is most often brought in for load testing web APIs; Trunk Code Quality for running one lint command across a polyglot repository. The jobs each tool is most often brought in to do.

Locust

  • Load testing web APIsnot Trunk Code Quality
  • Stress testing websitesnot Trunk Code Quality
  • CI performance checksnot Trunk Code Quality
  • Simulating user behaviour as codenot Trunk Code Quality

Trunk Code Quality

  • Running one lint command across a polyglot repositorynot Locust
  • Gradually fixing legacy code with Hold the Linenot Locust
  • Pinning linter versions across a teamnot Locust
  • Enforcing the same checks locally and in CInot Locust
  • Adding security scanners to pull requestsnot Locust

Where do Locust and Trunk Code Quality fall short?

Locust's most cited limit: scenarios must be written in Python; there is no graphical recorder. Trunk Code Quality's: private repositories with more than five active committers need a paid licence. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Locust

  • Scenarios must be written in Python; there is no graphical recorder
  • Built mainly for HTTP; other protocols need custom code
  • Hosted runs and support come from the separate Locust.cloud service
  • Large tests need several machines configured for distributed mode

Trunk Code Quality

  • Private repositories with more than five active committers need a paid licence
  • Paid Team and Enterprise prices are not published; quotes come from sales
  • Core CLI is closed source, with only plugins and the GitHub Action under MIT
  • Results depend on the underlying linters, so rule coverage is not Trunk's own

How much do Locust and Trunk Code Quality cost?

Locust is free to use; Trunk Code Quality is free to use. Plan by plan below, from each vendor's own pricing page.

Locust

Free

No published plan breakdown. See the Locust review.

Trunk Code Quality

Free
  • Free (up to 5 active committers on private repos)Free
  • Team (per seat)On request
  • Enterprise (annual site licence)On request

Which should you pick?

Choose Locust if

  • You need test scenarios written in python.
  • You want to start without paying.
  • You work on API.
  • You also want distributed load generation.

Choose Trunk Code Quality if

  • You need installs and runs over 100 linters and formatters.
  • You want to start without paying.
  • You work on macOS, Linux, Windows.
  • You also want version pinning through trunk.yaml.

Questions people ask

Is Locust or Trunk Code Quality better?
It depends on the job. Locust fits load testing web APIs; Trunk Code Quality fits running one lint command across a polyglot repository. Locust starts at Free and Trunk Code Quality at Free.
Which is cheaper, Locust or Trunk Code Quality?
Locust starts at Free and Trunk Code Quality at Free.
Does Locust or Trunk Code Quality run on more platforms?
Locust runs on API. Trunk Code Quality runs on macOS, Linux, Windows.
Can I use Locust for free?
Both have a free tier, so you can try either at no cost before committing.
What is Locust best used for?
Locust is most often used for load testing web apis, stress testing websites, ci performance checks, simulating user behaviour as code. Of those, load testing web apis and stress testing websites are not what Trunk Code Quality is typically brought in for.
What can Locust do that Trunk Code Quality cannot?
Locust covers Test scenarios written in Python, Distributed load generation, Real-time web UI, Headless mode for CI/CD. Trunk Code Quality covers Installs and runs over 100 linters and formatters, Version pinning through trunk.yaml, Hold the Line checks on new changes only, Background daemon that precomputes results.

Answered from the vendors’ own pages

Locust: What licence does Locust use?

The GitHub repository states the MIT licence.

Source
Trunk Code Quality: What does Trunk Code Quality do?

It is a metalinter that installs, pins and runs third party linters, formatters and security scanners from one CLI. A background daemon precomputes results for editor annotations.

Source
Locust: How do I install it?

Install from PyPI with pip install locust and run locust -f locustfile.py.

Source
Trunk Code Quality: Is Trunk Code Quality free?

Public and open source repositories have no stated usage limit, and private repositories with five or fewer active committers can use the CLI at no cost. Larger private teams need a paid licence.

Source
Locust: Does it support distributed testing?

Yes, load can be spread across multiple machines.

Source
Trunk Code Quality: Which operating systems are supported?

The launcher supports macOS and Linux. Windows is supported from CLI version 1.13.0, using git-bash, msys2 or a PowerShell launcher.

Source
Trunk Code Quality: How many linters does it support?

The supported linters page claims over 100 linters and formatters. They cover many languages plus infrastructure, security, SQL and Markdown tooling.

Source
Share

Related pages

Other head to heads