# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 hyperfine

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

## 安装

```sh
sudo av install brew:hyperfine
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hyperfine
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hyperfine
```

  证据: MacPorts ports tree: sysutils/hyperfine/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add hyperfine
```

  证据: Alpine Linux edge package indexes: hyperfine from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install hyperfine
```

  证据: Debian stable package indexes: hyperfine from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install hyperfine
```

  证据: Fedora Rawhide package metadata: hyperfine from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#hyperfine
```

  证据: nixpkgs package indexes: pkgs/by-name/hy/hyperfine/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S hyperfine
```

  证据: Arch Linux sync databases: hyperfine from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install hyperfine
```

  证据: openSUSE Tumbleweed package metadata: hyperfine from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/hyperfine
```

  证据: Scoop official bucket manifest trees: bucket/hyperfine.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id sharkdp.hyperfine -e
```

  证据: Windows Package Manager source index: sharkdp.hyperfine from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:hyperfine
- **软件包管理器:** Homebrew
- **版本:** 1.20.0
- **来源摘要:** Command-line benchmarking tool
- **主页:** <https://github.com/sharkdp/hyperfine>
- **仓库:** <https://github.com/sharkdp/hyperfine>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hyperfine (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

hyperfine is a Rust command-line benchmarking tool for comparing arbitrary shell commands with repeated runs, warmups, statistical analysis, outlier detection, and export formats.

### 项目历史

The project entered GitHub release metadata in January 2018 and reached 1.0.0 in March 2018. Its README establishes the core workflow: pass one or more commands, let hyperfine determine a run count, and compare runtimes with statistical summaries.

Over time, hyperfine grew from a convenient command timer into a reproducible benchmarking utility. Release notes added features such as parameter scans, shell control, setup and cleanup commands, JSON/CSV/Markdown/AsciiDoc export, reference-command comparisons, named outputs, and helper scripts for plotting benchmark data.

### 采用历史

hyperfine became a common package-manager tool for developers benchmarking CLI programs, build commands, searches, and small scripts. The input metadata lists broad packaging across Homebrew, Debian, Ubuntu, Fedora, Arch, Nix, MacPorts, Scoop, winget, Alpine, and openSUSE.

### 使用方式

Typical usage is `hyperfine 'command'` or `hyperfine 'cmd1' 'cmd2'`. Users add warmup runs for cache effects, preparation commands for cold-cache tests, parameter scans for build matrices, `--shell=none` for very fast commands, and export flags when results need to be tracked or plotted.

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

hyperfine is important because it made respectable microbenchmarking available as a single package-manager install. It encodes the small details package maintainers and CLI authors care about: shell startup correction, warmups, outlier warnings, machine-readable exports, cross-platform behavior, and enough statistics to avoid cargo-culting `time` output.

### 时间线

- 2018: v0.2.0 and v1.0.0 appeared in GitHub release metadata.
- 2021: v1.12.0 expanded JSON output and export behavior.
- 2022: v1.13.0 added `--shell=none` for very fast commands.
- 2024: v1.19.0 added reference-command comparison and expanded flow controls.
- 2025: v1.20.0 added reference naming, richer ignored-exit handling, and plotting helpers.

### Related projects

- hyperfine sits alongside shell `time`, GNU time, Criterion-style benchmarking, cargo bench, and sharkdp's Rust CLI ecosystem such as fd and bat.

### 来源

- <https://api.github.com/repos/sharkdp/hyperfine/releases?per_page=100>
- <https://formulae.brew.sh/formula/hyperfine>
- <https://github.com/sharkdp/hyperfine>
- <https://raw.githubusercontent.com/sharkdp/hyperfine/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - hyperfine - 1.19.0-1+b3: normalized package name match | Debian stable package indexes: hyperfine from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command-line benchmarking tool | https://github.com/sharkdp/hyperfine
- Nix - hyperfine: normalized package name match | nixpkgs package indexes: pkgs/by-name/hy/hyperfine/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - hyperfine - 1.18.0-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: hyperfine from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command-line benchmarking tool | https://github.com/sharkdp/hyperfine
- apk - hyperfine - 1.20.0-r0: normalized package name match | Alpine Linux edge package indexes: hyperfine from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command-line benchmarking tool | https://github.com/sharkdp/hyperfine
- apk - hyperfine-bash-completion - 1.20.0-r0: normalized package name match | Alpine Linux edge package indexes: hyperfine-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for hyperfine | https://github.com/sharkdp/hyperfine
- apk - hyperfine-doc - 1.20.0-r0: normalized package name match | Alpine Linux edge package indexes: hyperfine-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command-line benchmarking tool (documentation) | https://github.com/sharkdp/hyperfine
- apk - hyperfine-fish-completion - 1.20.0-r0: normalized package name match | Alpine Linux edge package indexes: hyperfine-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for hyperfine | https://github.com/sharkdp/hyperfine
- apk - hyperfine-zsh-completion - 1.20.0-r0: normalized package name match | Alpine Linux edge package indexes: hyperfine-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for hyperfine | https://github.com/sharkdp/hyperfine
- dnf - hyperfine - 1.20.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: hyperfine from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Command-line benchmarking tool | https://crates.io/crates/hyperfine
- pacman - hyperfine - 1.20.0-1: normalized package name match | Arch Linux sync databases: hyperfine from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A command-line benchmarking tool | https://github.com/sharkdp/hyperfine
- zypper - hyperfine - 1.20.0-2.3: normalized package name match | openSUSE Tumbleweed package metadata: hyperfine from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command-line benchmarking tool | https://github.com/sharkdp/hyperfine
- zypper - hyperfine-bash-completion - 1.20.0-2.3: normalized package name match | openSUSE Tumbleweed package metadata: hyperfine-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for hyperfine | https://github.com/sharkdp/hyperfine
- zypper - hyperfine-fish-completion - 1.20.0-2.3: normalized package name match | openSUSE Tumbleweed package metadata: hyperfine-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for hyperfine | https://github.com/sharkdp/hyperfine
- zypper - hyperfine-zsh-completion - 1.20.0-2.3: normalized package name match | openSUSE Tumbleweed package metadata: hyperfine-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ZSH Completion for hyperfine | https://github.com/sharkdp/hyperfine
- MacPorts - hyperfine: normalized package name match | MacPorts ports tree: sysutils/hyperfine/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/hyperfine: normalized package name match | Scoop official bucket manifest trees: bucket/hyperfine.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [hyperfine](https://pkg.so/zh-hans/pkg/cargo/hyperfine/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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


## 来源

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