summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/plot.py
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-10-02 14:11:14 +0200
committerTyge Løvset <[email protected]>2021-10-02 14:11:14 +0200
commit882e173a2cc9a09c3a96a330f981daa11e34e0d0 (patch)
treeee085f16eb3caf62a955ef994bd9a7939b9bc4dd /benchmarks/plot.py
parent67f49709f60ce063b6a1c84364232d19eb71f800 (diff)
downloadSTC-modified-882e173a2cc9a09c3a96a330f981daa11e34e0d0.tar.gz
STC-modified-882e173a2cc9a09c3a96a330f981daa11e34e0d0.zip
Updated benchmark scripts.
Diffstat (limited to 'benchmarks/plot.py')
-rw-r--r--benchmarks/plot.py9
1 files changed, 6 insertions, 3 deletions
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)