0.5.3 • Published 9 years ago
penkki v0.5.3
Penkki
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.
Examples
HTML
Chart
Sparkly
JSON
Install
$ npm install -g penkki
Examples
# 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
Formatters
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 |
License
Apache License 2.0.