Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmark: add csv and plotting script #777

Closed

Commits on Feb 10, 2015

  1. benchmark: add output format option [csv]

    This commit adds an `OUTPUT_FORMAT` environment variable option for
    all benchmark tests that allow either 'csv' or 'default' output. Default
    output has been left unchanged, and csv output prints out the csv
    headers along with the csv formatted per-test output, each test also
    seperated by a newline.
    
    It can be used like the following:
    $ OUTPUT_FORMAT=csv iojs benchmark/common.js http
    
    Not specifying the OUTPUT_FORMAT env var will default to 'default'.
    Specifying a bad value will throw an error.
    brendanashworth committed Feb 10, 2015
    Configuration menu
    Copy the full SHA
    dda466b View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2015

  1. benchmark: add output format option [csv]

    This commit adds an `OUTPUT_FORMAT` environment variable option for
    all benchmark tests that allow either 'csv' or 'default' output. Default
    output has been left unchanged, and csv output prints out the csv
    headers along with the csv formatted per-test output, each test also
    seperated by a newline.
    
    It can be used like the following:
    $ OUTPUT_FORMAT=csv iojs benchmark/common.js http
    
    Not specifying the OUTPUT_FORMAT env var will default to 'default'.
    Specifying a bad value will throw an error.
    brendanashworth committed Feb 12, 2015
    Configuration menu
    Copy the full SHA
    21ae52c View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2015

  1. 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.
    brendanashworth committed Feb 16, 2015
    Configuration menu
    Copy the full SHA
    6389c58 View commit details
    Browse the repository at this point in the history