From 882e173a2cc9a09c3a96a330f981daa11e34e0d0 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 2 Oct 2021 14:11:14 +0200 Subject: Updated benchmark scripts. --- benchmarks/plot.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'benchmarks/plot.py') diff --git a/benchmarks/plot.py b/benchmarks/plot.py index bd386312..ea3871f4 100644 --- a/benchmarks/plot.py +++ b/benchmarks/plot.py @@ -1,13 +1,16 @@ +import sys import seaborn as sns import pandas as pd import matplotlib.pyplot as plt #sns.set_theme(style="whitegrid") comp = ['All compilers', 'Mingw-g++-10.30', 'Win-Clang-12', 'VC-19.28'] -n = 3 -df = pd.read_csv('plot_perf.csv') +n = int(sys.argv[1]) if len(sys.argv) > 1 else 0 +file = sys.argv[2] if len(sys.argv) > 2 else 'plot_win.csv' +df = pd.read_csv(file) df = df[df.Method != 'total'] -if n > 0: df = df[df.Compiler == comp[n]] +if n > 0: + df = df[df.Compiler == comp[n]] g = sns.catplot(data=df, x='Method', y='Seconds', hue='Library', col='C', kind='bar', ci=68, legend=False, col_wrap=2, sharex=False, aspect=1.4, height=3.1) -- cgit v1.2.3