hyperfine

A command-line benchmarking tool for comparing execution times

brewmacoslinux
Try with needOr install directly
Source

About

Command-line benchmarking tool

Commands

hyperfine

Examples

Compare execution time of two commands$ hyperfine 'ls -la' 'exa -la'
Benchmark a command with custom number of runs$ hyperfine --runs 10 'curl https://example.com'
Compare multiple commands with warmup runs$ hyperfine --warmup 3 'grep pattern file.txt' 'ripgrep pattern file.txt'