Skip to content

Instantly share code, notes, and snippets.

@0atman
Last active May 24, 2026 10:00
Show Gist options
  • Select an option

  • Save 0atman/a8db19899d4f66db15234601bf81365d to your computer and use it in GitHub Desktop.

Select an option

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 ripgrep@14.1.0'

Without installation on any machine with Nix

nix-shell -p cargo hyperfine --run "hyperfine --warmup=1 'cargo install -f ripgrep@14.1.0'"

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 ripgrep@14.1.0 && cargo install -f ripgrep@14.1.0
@0atman

0atman commented Apr 16, 2024

Copy link
Copy Markdown
Author

Thinkcentre - 39.6s

Benchmark 1: cargo install -f ripgrep@14.1.0
  Time (mean ± σ):     39.647 s ±  0.210 s    [User: 130.243 s, System: 5.717 s]
  Range (min … max):   39.481 s … 39.883 s    3 runs

An old thin workstation I had lying around with an old i5-6400T

@0atman

0atman commented Apr 17, 2024

Copy link
Copy Markdown
Author

X13 Yoga - 14s

Screenshot_20240902_163220

Benchmark 1: cargo install -f ripgrep@14.1.0
  Time (mean ± σ):     14.152 s ±  0.349 s    [User: 81.808 s, System: 3.044 s]
  Range (min … max):   13.777 s … 14.868 s    10 runs
  • Sometimes thermal throttling pushes this to 24s.
  • As of 2026, seems to be 30s?

@0atman

0atman commented Apr 17, 2024

Copy link
Copy Markdown
Author

2024 Ryzen 9 7950X PC build - 5.7s

Screenshot from 2024-04-17 12-15-18

💨

@0atman

0atman commented Nov 28, 2024

Copy link
Copy Markdown
Author

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

0atman commented Mar 11, 2025

Copy link
Copy Markdown
Author

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

0atman commented Jun 26, 2025

Copy link
Copy Markdown
Author

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

@0atman

0atman commented Sep 3, 2025

Copy link
Copy Markdown
Author

Framework 12 - 21s

Intel i3 base version, 16GB memory

Benchmark 1: cargo install -f ripgrep@14.1.0
  Time (mean ± σ):     22.313 s ±  0.533 s    [User: 141.531 s, System: 5.313 s]
  Range (min … max):   21.104 s … 23.221 s    10 runs

Note: 10s slower using 8GB of memory

@0atman

0atman commented Apr 13, 2026

Copy link
Copy Markdown
Author

LEGION GO - 12s

512 verison

❯ hyperfine --warmup=1 'cargo install -f ripgrep@14.1.0'
Benchmark 1: cargo install -f ripgrep@14.1.0
  Time (mean ± σ):     12.241 s ±  0.667 s    [User: 110.953 s, System: 6.631 s]
  Range (min … max):   10.874 s … 13.578 s    10 runs
 
  Warning: Statistical outliers were detected.

@0atman

0atman commented May 20, 2026

Copy link
Copy Markdown
Author

Macbook M4 Pro - 6.8s

4e 10c

6.852 +/- 0.397

@Veykril

Veykril commented May 20, 2026

Copy link
Copy Markdown

Macbook M4 Max - 6s

48GB

Benchmark 1: cargo install -f ripgrep@14.1.0
  Time (mean ± σ):      6.012 s ±  0.432 s    [User: 46.644 s, System: 2.259 s]
  Range (min … max):    5.813 s …  7.233 s    10 runs

@stringiest

stringiest commented May 24, 2026

Copy link
Copy Markdown

Thinkpad X1 Carbon Gen 9 - 21.4s

11th gen i5 16GB ram,

Benchmark 1: cargo install -f ripgrep@14.1.0
  Time (mean ± σ):     21.463 s ±  0.811 s    [User: 142.628 s, System: 4.343 s]
  Range (min … max):   20.700 s … 22.807 s    10 runs

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