File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1276,17 +1276,29 @@ class WSLBenchmark extends Benchmark {
1276
1276
get runnerCode ( ) {
1277
1277
return `
1278
1278
let benchmark = new Benchmark();
1279
+ const benchmarkName = "${ this . name } ";
1280
+
1279
1281
let results = [];
1280
1282
{
1283
+ const markLabel = benchmarkName + "-stdlib";
1284
+ const startMark = performance.mark(markLabel);
1285
+
1281
1286
let start = performance.now();
1282
1287
benchmark.buildStdlib();
1283
1288
results.push(performance.now() - start);
1289
+
1290
+ performanceMeasure(markLabel, startMark);
1284
1291
}
1285
1292
1286
1293
{
1294
+ const markLabel = benchmarkName + "-mainRun";
1295
+ const startMark = performance.mark(markLabel);
1296
+
1287
1297
let start = performance.now();
1288
1298
benchmark.run();
1289
1299
results.push(performance.now() - start);
1300
+
1301
+ performanceMeasure(markLabel, startMark);
1290
1302
}
1291
1303
1292
1304
top.currentResolve(results);
You can’t perform that action at this time.
0 commit comments