Skip to content

Instantly share code, notes, and snippets.

@0atman
Last active April 17, 2024 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 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'"
@0atman
Copy link
Author

0atman commented Apr 16, 2024

Steamdeck

Screenshot_20240416_094708

This seems... weirdly slow. I'm sure it used to run in half this time.

@0atman
Copy link
Author

0atman commented Apr 16, 2024

Thinkcentre

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
Copy link
Author

0atman commented Apr 17, 2024

X13 Yoga

Screenshot from 2024-04-17 11-33-21

First run on a (literal) cold boot was 12s, thermal throttling is a harsh mistress.

@0atman
Copy link
Author

0atman commented Apr 17, 2024

My 2024 Ryzen 9 7950X PC build

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

💨

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