penkki
Version:
Benchmark one or more commands, get a rad visualization.
66 lines (45 loc) • 1.45 kB
Markdown
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.
<img src="https://nw.kapsi.fi/penkki-html.png" width="600px"/>
<img src="https://nw.kapsi.fi/penkki-chart.png" width="600px"/>
<img src="https://nw.kapsi.fi/penkki-sparkly.png" width="600px"/>
<img src="https://nw.kapsi.fi/penkki-json.png" width="600px"/>
```bash
$ npm install -g penkki
```
```bash
$ penkki --times 5 gradle
[ '"gradle"',
48527,
29418,
26333,
25239,
24540 ]
$ 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][c3]) | `penkki -f html -t 50 my-awesome-command`
[]: http://c3js.org/
[]: https://github.com/jstrace/bars
[]: https://github.com/jstrace/chart
[]: https://github.com/sindresorhus/sparkly
Apache License 2.0.