eepykate / timetest

a bash script to benchmark execution times of a command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

timetest
a bash script to benchmark open -> close time of a command

examples
 $ timetest bash -c exit
 $ times=36 delay=0.25 limit=10 timetest ./a.out

requirements
 - bash (≥v5)
 - POSIX-compatible sort & sed (for median)

[1]
quick example: st on my system (median & iqr)
~18.29  ±1.29 | st | ms, 50x, 0s between
~18.28  ±0.24 | st | ms, 50x, 0.1s between
~18.27  ±0.29 | st | ms, 50x, 0.25s between
~18.32  ±0.20 | st | ms, 50x, 0.5s between

About

a bash script to benchmark execution times of a command

License:MIT License


Languages

Language:Shell 100.0%