diff options
| author | Tyge Løvset <[email protected]> | 2021-10-02 14:11:14 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-10-02 14:11:14 +0200 |
| commit | 882e173a2cc9a09c3a96a330f981daa11e34e0d0 (patch) | |
| tree | ee085f16eb3caf62a955ef994bd9a7939b9bc4dd /benchmarks/plot.py | |
| parent | 67f49709f60ce063b6a1c84364232d19eb71f800 (diff) | |
| download | STC-modified-882e173a2cc9a09c3a96a330f981daa11e34e0d0.tar.gz STC-modified-882e173a2cc9a09c3a96a330f981daa11e34e0d0.zip | |
Updated benchmark scripts.
Diffstat (limited to 'benchmarks/plot.py')
| -rw-r--r-- | benchmarks/plot.py | 9 |
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)
|
