Skip to content

Commit 9cf293f

Browse files
committed
Move quicksort-wasm to JS-style scoring
The usual changes: use `WasmEMCCBenchmark` class for running, rebuild and add build script, use iteration count that makes the Wall time not too high (<2s) In this case, we spend a bit more time in the top-tier than before. However, that line item earlier ran a single <50ms iteration, and compiled for ~2ms, so I would argue it was very prone to noise, and it's good that we run it for longer.
1 parent 21b9a95 commit 9cf293f

File tree

10 files changed

+836
-1201
lines changed

10 files changed

+836
-1201
lines changed

JetStreamDriver.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1975,14 +1975,16 @@ const BENCHMARKS = [
19751975
worstCaseCount: 2,
19761976
testGroup: WasmGroup
19771977
}),
1978-
new WasmLegacyBenchmark({
1978+
new WasmEMCCBenchmark({
19791979
name: "quicksort-wasm",
19801980
files: [
1981-
"./wasm/quicksort.js"
1981+
"./wasm/quicksort/build/quicksort.js",
1982+
"./wasm/quicksort/benchmark.js",
19821983
],
19831984
preload: {
1984-
wasmBinary: "./wasm/quicksort.wasm"
1985+
wasmBinary: "./wasm/quicksort/build/quicksort.wasm"
19851986
},
1987+
iterations: 50,
19861988
testGroup: WasmGroup
19871989
}),
19881990
new WasmEMCCBenchmark({

0 commit comments

Comments
 (0)