Skip to content

Instantly share code, notes, and snippets.

@devlongs
Created December 16, 2025 06:04
Show Gist options
  • Select an option

  • Save devlongs/c29b4402e9b8360d5efb1312c3857da5 to your computer and use it in GitHub Desktop.

Select an option

Save devlongs/c29b4402e9b8360d5efb1312c3857da5 to your computer and use it in GitHub Desktop.
If you want to benchmark your entire compiled program (not just functions), use the hyperfine command-line tool

Install

cargo install hyperfine

Benchmark your program

hyperfine './target/release/my_program'
hyperfine './target/release/version1' './target/release/version2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment