Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions JetStreamDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,16 @@ class Benchmark {
return tags.some((tag) => this.tags.has(tag.toLowerCase()));
}

get benchmarkArguments() {
return {
...this.plan.arguments,
iterationCount: this.iterations,
};
}

get runnerCode() {
return `{
const benchmark = new Benchmark(${this.iterations});
const benchmark = new Benchmark(${JSON.stringify(this.benchmarkArguments)});
const results = [];
const benchmarkName = "${this.name}";

Expand Down Expand Up @@ -1404,7 +1411,7 @@ class WSLBenchmark extends Benchmark {

get runnerCode() {
return `{
const benchmark = new Benchmark();
const benchmark = new Benchmark(${JSON.stringify(this.benchmarkArguments)});
const benchmarkName = "${this.name}";

const results = [];
Expand Down
2 changes: 1 addition & 1 deletion RexBench/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"use strict";

class Benchmark {
constructor(verbose = 0)
constructor({verbose = 0})
{
this._verbose = verbose;
}
Expand Down
Loading