Skip to content

Instantly share code, notes, and snippets.

@0atman
Last active July 10, 2025 10:56
Show Gist options
  • Save 0atman/a8db19899d4f66db15234601bf81365d to your computer and use it in GitHub Desktop.
Save 0atman/a8db19899d4f66db15234601bf81365d to your computer and use it in GitHub Desktop.
My standard 'install a specific ripgrep' benchmark, now with hyperfine and zero install with nix

With Rust and Hyperfine installed natively

(through https://rustup.rs)

hyperfine --warmup=1 'cargo install -f [email protected]'

Without installation on any machine with Nix

nix-shell -p cargo hyperfine --run "hyperfine --warmup=1 'cargo install -f [email protected]'"

Without hyperfine

This won't be quite as comparable, hyperfine is really great for benchmarking, but if you only have cargo, just run the install twice:

cargo install -f [email protected] && cargo install -f [email protected]
@0atman
Copy link
Author

0atman commented Nov 28, 2024

Raspberry Pi 5 - 63s

Model B Rev 1.0 - 8GB Memory, Raspbian installed to m.2 SSD

Benchmark 1: cargo install -f ripgrep@14.1.0
  Time (mean ± σ):     63.482 s ±  4.722 s    [User: 189.718 s, System: 2.429 s]
  Range (min … max):   53.597 s … 67.314 s    10 runs

@0atman
Copy link
Author

0atman commented Mar 11, 2025

Minisforum 890Pro - 8s

Ryzen 9 8945HS, 64GB memory

Benchmark 1: cargo install -f ripgrep
  Time (mean ± σ):      8.017 s ±  0.218 s    [User: 62.088 s, System: 3.826 s]
  Range (min … max):    7.884 s …  8.456 s    10 runs

@0atman
Copy link
Author

0atman commented Jun 26, 2025

Nipogi GK3 - 56s

Intel N95, 8GB memory

Benchmark 1: cargo install -f ripgrep@14.1.0
  Time (mean ± σ):     56.684 s ±  2.264 s    [User: 138.628 s, System: 7.249 s]
  Range (min … max):   52.068 s … 58.990 s    10 runs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment