Skip to content
Merged
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
19 changes: 3 additions & 16 deletions JetStreamDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,11 @@ class Driver {
let text = "";
let newBenchmarks = [];
for (const benchmark of this.benchmarks) {
const id = JSON.stringify(benchmark.constructor.scoreDescription());
const description = JSON.parse(id);
const description = Object.keys(benchmark.subScores());
description.push("Score");

newBenchmarks.push(benchmark);
const scoreIds = benchmark.scoreIdentifiers()
const scoreIds = benchmark.scoreIdentifiers();
const overallScoreId = scoreIds.pop();

if (isInBrowser) {
Expand Down Expand Up @@ -1005,7 +1005,6 @@ class Benchmark {
return this._resourcesPromise;
}

static scoreDescription() { throw new Error("Must be implemented by subclasses."); }
scoreIdentifiers() { throw new Error("Must be implemented by subclasses"); }
Comment thread
camillobruni marked this conversation as resolved.

updateUIBeforeRun() {
Expand Down Expand Up @@ -1088,10 +1087,6 @@ class DefaultBenchmark extends Benchmark {
};
}

static scoreDescription() {
return ["First", "Worst", "Average", "Score"];
}

scoreIdentifiers() {
return [firstID(this), worst4ID(this), avgID(this), scoreID(this)];
}
Expand Down Expand Up @@ -1310,10 +1305,6 @@ class WSLBenchmark extends Benchmark {
};
}

static scoreDescription() {
return ["Stdlib", "MainRun", "Score"];
}

scoreIdentifiers() {
return ["wsl-stdlib-score", "wsl-tests-score", "wsl-score-score"];
}
Expand Down Expand Up @@ -1486,10 +1477,6 @@ class WasmLegacyBenchmark extends Benchmark {
};
}

static scoreDescription() {
return ["Startup", "Runtime", "Score"];
}

get startupID() {
return `wasm-startup-id${this.name}`;
}
Expand Down
Loading