Run one or more commands n times and measure how long each run takes. Get result as JSON or incredibly useful and staggeringly engaging visualization.
$ npm install -g penkki
# Run Gradle 5 times.
$ penkki --times 5 gradle
[ '"gradle"',
48527,
29418,
26333,
25239,
24540 ]
# Run ls, du, and df 5 times and save the resulting HTML/JS line chart
# as benchmark.html.
$ penkki --formatter html --times 5 --commands ls,du,df > benchmark.html
Formatter | Example |
---|---|
JSON (default) | penkki -t 50 my-awesome-command |
Chart | penkki -f chart -t 50 my-awesome-command |
Sparkly | penkki -f sparkly -t 50 my-awesome-command |
Bars | penkki -f bars -t 50 my-awesome-command |
HTML (C3) | penkki -f html -t 50 my-awesome-command |
Apache License 2.0.