Code Monkey home page Code Monkey logo

google_benchmark_plot's Introduction

google_benchmark_plot

A python script to visualize the output from google-benchmark

Here is a 2 minute demo:

2 minute demo

Using the script

If you are feeling lucky, try

./your_benchmark_exe --benchmark_format=csv | python plot.py

Detailed instructions

  • Clone the repository
  • Run pip install -r requirements.txt (works with both python 2 and 3)
  • Obtain the benchmark results as a csv, this is done by running your benchmark as
./your_benchmark_exe --benchmark_format=csv > benchmark.csv
  • Pass the csv file to this script
python plot.py -f benchmark.csv

What else does it do

The script allows you to customize the plot using command line flags. The complete help text can be seen by calling

$ python plot.py -h

usage: plot.py [-h] [-f FILE] [-m METRIC] [-t TRANSFORM] [-r RELATIVE_TO]
               [--xlabel XLABEL] [--ylabel YLABEL] [--title TITLE] [--logx]
               [--logy]

Visualize google-benchmark output

optional arguments:
  -h, --help       show this help message and exit
  -f FILE          path to file containing the csv or json benchmark data
  -m METRIC        metric to plot on the y-axis, valid choices are: real_time,
                   cpu_time, bytes_per_second, items_per_second
  -t TRANSFORM     transform to apply to the chosen metric, valid choices are:
                   inverse
  -r RELATIVE_TO   plot metrics relative to this label
  --xlabel XLABEL  label of the x-axis
  --ylabel YLABEL  label of the y-axis
  --title TITLE    title of the plot
  --logx           plot x-axis on a logarithmic scale
  --logy           plot y-axis on a logarithmic scale
  --output         File in which to save the graph

google_benchmark_plot's People

Contributors

lakshayg avatar geertbosch avatar seanheelan avatar xxrlzzz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.