Skip to content

Commit 3c12162

Browse files
authored
Merge pull request #64: WSL: Add performance.mark
WSL didn't have annotations yet, let's add them for easier investigation.
2 parents 19a8be2 + d92853d commit 3c12162

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

JetStreamDriver.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,17 +1276,29 @@ class WSLBenchmark extends Benchmark {
12761276
get runnerCode() {
12771277
return `
12781278
let benchmark = new Benchmark();
1279+
const benchmarkName = "${this.name}";
1280+
12791281
let results = [];
12801282
{
1283+
const markLabel = benchmarkName + "-stdlib";
1284+
const startMark = performance.mark(markLabel);
1285+
12811286
let start = performance.now();
12821287
benchmark.buildStdlib();
12831288
results.push(performance.now() - start);
1289+
1290+
performanceMeasure(markLabel, startMark);
12841291
}
12851292
12861293
{
1294+
const markLabel = benchmarkName + "-mainRun";
1295+
const startMark = performance.mark(markLabel);
1296+
12871297
let start = performance.now();
12881298
benchmark.run();
12891299
results.push(performance.now() - start);
1300+
1301+
performanceMeasure(markLabel, startMark);
12901302
}
12911303
12921304
top.currentResolve(results);

0 commit comments

Comments
 (0)