File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1206,17 +1206,28 @@ class WSLBenchmark extends Benchmark {
1206
1206
get runnerCode ( ) {
1207
1207
return `
1208
1208
let benchmark = new Benchmark();
1209
+ const benchmarkName = "${ this . name } ";
1209
1210
let results = [];
1210
1211
{
1212
+ const markLabel = benchmarkName + "-stlib";
1213
+ const startMark = performance.mark(markLabel);
1214
+
1211
1215
let start = performance.now();
1212
1216
benchmark.buildStdlib();
1213
1217
results.push(performance.now() - start);
1218
+
1219
+ performanceMeasure(markLabel, startMark);
1214
1220
}
1215
1221
1216
1222
{
1223
+ const markLabel = benchmarkName + "-mainRun";
1224
+ const startMark = performance.mark(markLabel);
1225
+
1217
1226
let start = performance.now();
1218
1227
benchmark.run();
1219
1228
results.push(performance.now() - start);
1229
+
1230
+ performanceMeasure(markLabel, startMark);
1220
1231
}
1221
1232
1222
1233
top.currentResolve(results);
You can’t perform that action at this time.
0 commit comments