Skip to content
Myr

Add script to plot benchmark results

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 51fe31e · Browse files · 1 file+20 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+20 added−0 removed

  • other:+20 added−0 removed

1 file+20 added−0 removed

added:scripts/plot_benchmark_results.py+20 added
1#!/usr/bin/python23import argparse4import json5import matplotlib.pyplot as plt67parser = argparse.ArgumentParser()8parser.add_argument("file", help="JSON file with benchmark results")9args = parser.parse_args()1011with open(args.file) as f:12 results = json.load(f)["results"]1314commands = [b["command"] for b in results]15times = [b["times"] for b in results]1617plt.boxplot(times, labels=commands)18plt.ylabel("Time [s]")19plt.ylim(0, None)20plt.show()