---
name: php186-skill-80926
description: "使用 Hyperfine 以统计严谨的方式对基准命令行程序进行测试。执行预热运行，检测异常值，以 JSON/CSV/Markdown 格式导出结果，并支持参数化基准测试以便比较。"
---

# Hyperfine 命令行基准测试工具

## Hyperfine 命令行基准测试工具

 

Benchmark command-line programs with statistical rigor using Hyperfine. Performs warmup runs, detects outliers, exports results in JSON/CSV/Markdown, and supports parameterized benchmarks for comparison.

 

## Installation

 

Use the upstream install or setup path that matches your environment:

 

- brew install hyperfine
- conda install -c conda-forge hyperfine
- cargo install --locked hyperfine
- Make sure that you use Rust 1.76 or newer.

 

Requirements and caveats from upstream:

 

- of helpful Python programs to further analyze benchmark results and create helpful

 

Basic usage or getting-started notes:

 

- Cache-clearing commands can be set up before each timing run.
- ### Basic benchmarks
- To run a benchmark, you can simply call hyperfine .... The argument(s) can be any
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/sharkdp/hyperfine/HEAD/README.md
