~howeyc/cbench

benchmark command-line tools

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~howeyc/cbench
read/write
git@git.sr.ht:~howeyc/cbench

You can also use your local clone with git send-email.

#cbench

Command Bench - benchmarking command-line tools

#Example

$ cbench 'find /home/howeyc/src/ -path "*pric*" -size +1M' 'findp /home/howeyc/src/ -path "*pric*" -size +1M'
Benchmark 1 [043 runs]: "find /home/howeyc/src/ -path \"*pric*\" -size +1M"
  Time:   68.4ms ±   600µs
  Range:  67.2ms …  70.9ms
Benchmark 2 [170 runs]: "findp /home/howeyc/src/ -path \"*pric*\" -size +1M"
  Time:   17.5ms ±   300µs
  Range:  16.9ms …  18.2ms

Summary
  "findp /home/howeyc/src/ -path \"*pric*\" -size +1M" ran
    3.89 ± 0.08 times faster than "find /home/howeyc/src/ -path \"*pric*\" -size +1M"