Skip to content

Commit 0474fc1

Browse files
committed
Add run-benchmarks.csv script
1 parent c34081e commit 0474fc1

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

run-benchmarks.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
./gradlew test --tests benchmarks.Benchmarks
2+
awk 'BEGIN{FS=" *, *"; OFS=", "} NR==FNR{if($1==0) baseline[$2]=$3; next} FNR==1{print "Interval,Instructions executed,Normalized Overhead"; next} {print $1, $2, $3/baseline[$2]}' results-forward-execution.csv results-forward-execution.csv > normalized-results-forward-execution.csv
3+

src/test/kotlin/benchmarks/graphs.tex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
y expr=\thisrow{Normalized Overhead},
7979
col sep=comma,
8080
restrict expr to domain={\thisrow{Interval}}{0:0}
81-
] {normalized-results-forward-execution.csv};
81+
] {../../../../normalized-results-forward-execution.csv};
8282

8383
\addplot[
8484
color=color1,
@@ -92,7 +92,7 @@
9292
y expr=\thisrow{Normalized Overhead},
9393
col sep=comma,
9494
restrict expr to domain={\thisrow{Interval}}{1:1}
95-
] {normalized-results-forward-execution.csv};
95+
] {../../../../normalized-results-forward-execution.csv};
9696
\addlegendentry{every instruction}
9797

9898
\addplot[
@@ -107,7 +107,7 @@
107107
y expr=\thisrow{Normalized Overhead},
108108
col sep=comma,
109109
restrict expr to domain={\thisrow{Interval}}{5:5}
110-
] {normalized-results-forward-execution.csv};
110+
] {../../../../normalized-results-forward-execution.csv};
111111

112112
\addplot[
113113
color=color3,
@@ -121,7 +121,7 @@
121121
y expr=\thisrow{Normalized Overhead},
122122
col sep=comma,
123123
restrict expr to domain={\thisrow{Interval}}{10:10}
124-
] {normalized-results-forward-execution.csv};
124+
] {../../../../normalized-results-forward-execution.csv};
125125

126126
\addplot[
127127
color=color4,
@@ -135,7 +135,7 @@
135135
y expr=\thisrow{Normalized Overhead},
136136
col sep=comma,
137137
restrict expr to domain={\thisrow{Interval}}{50:50}
138-
] {normalized-results-forward-execution.csv};
138+
] {../../../../normalized-results-forward-execution.csv};
139139

140140
\addplot[
141141
color=color5,
@@ -149,7 +149,7 @@
149149
y expr=\thisrow{Normalized Overhead},
150150
col sep=comma,
151151
restrict expr to domain={\thisrow{Interval}}{100:100}
152-
] {normalized-results-forward-execution.csv};
152+
] {../../../../normalized-results-forward-execution.csv};
153153

154154
\addplot [
155155
color0,
@@ -215,7 +215,7 @@
215215
y expr=\thisrow{Normalized Overhead},
216216
col sep=comma,
217217
restrict expr to domain={\thisrow{Interval}}{0:0}
218-
] {normalized-results-forward-execution.csv};
218+
] {../../../../normalized-results-forward-execution.csv};
219219
\addlegendentry{no snapshotting}
220220

221221
\addplot[
@@ -239,7 +239,7 @@
239239
y expr=\thisrow{Normalized Overhead},
240240
col sep=comma,
241241
restrict expr to domain={\thisrow{Interval}}{5:5}
242-
] {normalized-results-forward-execution.csv};
242+
] {../../../../normalized-results-forward-execution.csv};
243243
\addlegendentry{5 instructions}
244244

245245
\addplot[
@@ -254,7 +254,7 @@
254254
y expr=\thisrow{Normalized Overhead},
255255
col sep=comma,
256256
restrict expr to domain={\thisrow{Interval}}{10:10}
257-
] {normalized-results-forward-execution.csv};
257+
] {../../../../normalized-results-forward-execution.csv};
258258
\addlegendentry{10 instructions}
259259

260260
\addplot[
@@ -269,7 +269,7 @@
269269
y expr=\thisrow{Normalized Overhead},
270270
col sep=comma,
271271
restrict expr to domain={\thisrow{Interval}}{50:50}
272-
] {normalized-results-forward-execution.csv};
272+
] {../../../../normalized-results-forward-execution.csv};
273273
\addlegendentry{50 instructions}
274274

275275
\addplot[
@@ -284,7 +284,7 @@
284284
y expr=\thisrow{Normalized Overhead},
285285
col sep=comma,
286286
restrict expr to domain={\thisrow{Interval}}{100:100}
287-
] {normalized-results-forward-execution.csv};
287+
] {../../../../normalized-results-forward-execution.csv};
288288
\addlegendentry{100 instructions}
289289

290290
\addplot [
@@ -376,7 +376,7 @@
376376
]
377377
table[
378378
x=t, y=avg_time
379-
] {results-step-back-re-execution.csv};
379+
] {../../../../results-step-back-re-execution.csv};
380380

381381
\addplot [
382382
color2,

0 commit comments

Comments
 (0)