Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
runner = BenchmarkRunner(suite, '.', 'Cosine benchmarks')
n_benchs, results = runner.run()
fig = runner.plot_relative(results, horizontal=True, logy=True)
plt.savefig('%s.png' % runner.name.replace(' ', '_')) # bbox_inches='tight')
runner.plot_absolute(results, horizontal=False, logy=True)
plt.savefig('%s.png' % runner.name.replace(' ', '_')) # bbox_inches='tight')
rst_text = runner.to_rst(results, runner.name.replace(' ', '_') + 'png',
runner.name.replace(' ', '_') + '_r.png')
with open('bench.rst', 'w') as f:
f.write(rst_text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment