Skip to content
Merged
Changes from 1 commit
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
Loading