# Autocannon

> Autocannon is an open source, self-hosted micro-benchmark CLI from Matteo Collina, scripted in JavaScript, TypeScript.

- Canonical: https://perf.jmeter.ai/tools/autocannon/
- Review: https://perf.jmeter.ai/reviews/autocannon/
- Official: https://github.com/mcollina/autocannon
- Source: https://github.com/mcollina/autocannon
- Vendor: Matteo Collina
- Category: Micro-benchmark CLI
- License: Open Source — Free; MIT License.
- Deployment: Self-hosted
- Status: Active
- Scripting: JavaScript, TypeScript
- Protocols: HTTP, HTTPS
- OS support: Windows, macOS, Linux
- First released: 2017
- Latest release: v8.0.0 (2024-10-14)
- Last verified: 2026-08-11

## What it is
Autocannon generates HTTP traffic from the command line or JavaScript API. It reports throughput and latency and is commonly used in Node.js development.

## Choose it when
- Quick HTTP or protocol micro-benchmarks from a single machine
- Teams that prefer open-source licensing and self-hosting options
- Groups comfortable scripting in JavaScript, TypeScript

## Look elsewhere when
- Full multi-protocol enterprise journeys and rich business-flow reporting
- Teams unwilling to operate generators, results storage, and scaling

## Architecture
Autocannon is typically driven as a CLI micro-benchmark with JavaScript, TypeScript. It favors single-host or simple distributed runs rather than enterprise controller grids.

## Pricing
Free and open source (MIT License)

## Compare
- [Autocannon alternatives](https://perf.jmeter.ai/alternatives/autocannon/)

## FAQ
### Who is Autocannon for?
Autocannon is best for developers who need fast HTTP or protocol micro-benchmarks from a terminal. It is open source, so teams can self-host and extend it. Vendor: Matteo Collina. Deployment model: self-hosted. Free; MIT License. Confirm details against the official site and a short proof-of-concept in your environment.

### How does Autocannon differ from Vegeta?
Compared with Vegeta, scripting centers on JavaScript, TypeScript rather than Go. Autocannon lists protocols HTTP, HTTPS; Vegeta lists HTTP, HTTPS. Status is active versus active. Use the Test Rig to compare full specs side by side before a proof-of-concept. Confirm details against the official site and a short proof-of-concept in your environment.

### What scripting language and concurrency model does Autocannon use?
Autocannon uses JavaScript, TypeScript for scripting or scenario definition. Runtime model: CLI-driven request generation with a lightweight concurrency model suited to single-host benchmarks. OS support: Windows, macOS, Linux. Protocols: HTTP, HTTPS. Match these to how your team already authors tests and which systems you must drive under load.

### What is the cloud or enterprise path for Autocannon?
Autocannon is primarily self-hosted; teams typically run generators on their own machines, CI runners, or private cloud. Plan for generator capacity, network access to targets, and result storage yourself. As open source, commercial support or hosted siblings may exist separately. Check the official site. Pricing note: Free; MIT License.

### What are known limitations of Autocannon?
Autocannon limitations to weigh: CLI micro-benchmarks excel at raw HTTP throughput but usually lack enterprise scenario orchestration, rich reporting, and multi-protocol suites; self-hosted tools require you to provision, scale, and observe load generators yourself. Status: active. Always validate against your target protocols and scale with a proof-of-concept.

---
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