[[hyperfine]]を使う。
<div class="link-card-v2">
<div class="link-card-v2-site">
<img class="link-card-v2-site-icon" src="https://github.githubassets.com/favicons/favicon.svg" />
<span class="link-card-v2-site-name">GitHub</span>
</div>
<div class="link-card-v2-title">
GitHub - sharkdp/hyperfine: A command-line benchmarking tool
</div>
<div class="link-card-v2-content">
A command-line benchmarking tool. Contribute to sharkdp/hyperfine development by creating an account on GitHub.
</div>
<img class="link-card-v2-image" src="https://repository-images.githubusercontent.com/117356231/47c8d980-edcb-11e9-8784-d4aca8b657f5" />
<a href="https://github.com/sharkdp/hyperfine"></a>
</div>
## オススメコマンド
```console
hyperfine --warmup 3 --export-markdown report.md \
'<コマンド1>' \
'<コマンド2>'
```
`例`
```console
hyperfine --warmup 3 --export-markdown report.md \
'bun typecheck:old' \
'bun typecheck'
```
結果 (直接記述)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `bun typecheck:old` | 808.3 ± 7.7 | 797.6 | 822.2 | 4.30 ± 0.15 |
| `bun typecheck` | 187.9 ± 6.3 | 180.4 | 201.9 | 1.00 |