benchmark: add plot_csv R graphing script
authorBrendan Ashworth <brendan.ashworth@me.com>
Tue, 10 Feb 2015 04:25:47 +0000 (20:25 -0800)
committerBrendan Ashworth <brendan.ashworth@me.com>
Tue, 17 Mar 2015 04:26:05 +0000 (21:26 -0700)
commit97d8d4928d8126745d7734d635679ccf3c2dd431
tree1206ca3998404cc492802bafbce4198cb361355f
parent22793da485517845c028df6f46ed1767cf8bb941
benchmark: add plot_csv R graphing script

This commit adds a graphing script (in R) for graphing the CSV output
of a benchmark. It can be run like this:

```
$ OUTPUT_FORMAT=csv iojs benchmark/http/client-request-body.js >
data.csv
$ ./benchmark/plot_csv.R data.csv graph.png bytes type
```

This will graph the output to `graph.png`, using the output's `bytes`
value as X and the result value for each as Y. Output will be grouped
by `type`.

Running as the example yields a beautiful graph like this:
http://pbrd.co/1vBhUfy.

PR-URL: https://github.com/iojs/io.js/pull/777
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
benchmark/plot_csv.R [new file with mode: 0755]