# 使用 Homebrew 安装 autocannon

查看 autocannon 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:autocannon
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install autocannon
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:autocannon
- **软件包管理器:** Homebrew
- **版本:** 8.0.0
- **来源摘要:** Fast HTTP/1.1 benchmarking tool written in Node.js
- **主页:** <https://github.com/mcollina/autocannon>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- autocannon (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 8.0.0
## 项目历史与用法

autocannon is a fast HTTP/1.1 benchmarking and load-testing tool for Node.js users, usable both as a CLI and as a JavaScript API.

### 项目历史

The npm package and GitHub repository both date to 2016-03-31. The README describes autocannon as an HTTP/1.1 benchmarking tool written in Node.js, inspired by wrk and wrk2, with support for HTTPS and HTTP pipelining.

The project reached a long-lived 7.x series and published v8.0.0 on 2024-10-14. The repository remained active into 2026, with thousands of GitHub stars and hundreds of forks.

### 采用历史

autocannon's adoption follows the Node.js server ecosystem: it is distributed through npm for global CLI installs or library use, and the Homebrew formula packages the CLI for users who prefer system package managers.

Its popularity comes from being easy to run against a local URL while still exposing enough controls for serious testing: connection counts, pipelining, duration, request bodies, headers, HAR input, worker threads, rate limits and JSON output.

### 使用方式

The basic CLI form is autocannon [opts] URL. Defaults are intentionally simple, such as 10 connections and a 10 second run, but the README documents many options for duration, request count, concurrency, pipelining, warmup, headers, bodies, TLS certificates and output formats.

Programmatic usage imports the autocannon package and passes an options object, which makes it useful for benchmark scripts and project-local performance checks in Node.js repositories.

### 为什么软件包爱好者会关心

autocannon is package-nerd useful because it is a small, installable benchmark executable that competes culturally with native tools such as wrk while staying in the Node toolchain. It is one of the standard quick checks for HTTP service throughput in JavaScript projects.

Because it needs no daemon, config file or credentials, the packaging surface is clean: install Node, expose the bin, and let users point it at a URL.

### 时间线

- 2016: Repository and npm package are created on 2016-03-31.
- 2021: v7.x releases continue the mature CLI/API line.
- 2024: v8.0.0 is published on 2024-10-14.

### Related projects

- The README explicitly names wrk and wrk2 as inspirations.
- autocannon is commonly compared with HTTP benchmarking tools such as ab, wrk and hey, though its official docs emphasize its Node.js implementation and API.

### 来源

- <https://api.github.com/repos/mcollina/autocannon>
- <https://api.github.com/repos/mcollina/autocannon/releases>
- <https://github.com/mcollina/autocannon#readme>
- <https://registry.npmjs.org/autocannon>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Combined YAML source

View the package source record on GitHub. [combined/autocannon.yml](https://github.com/mxcl/pkgdb/blob/main/combined/autocannon.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
