Skip to content

Commit 707b7a8

Browse files
authored
Merge pull request #26 from danleh/gcc-loops-js-scoring
Convert gcc-loops-wasm to JS-style scoring
2 parents 3f50521 + 8a8ca90 commit 707b7a8

File tree

11 files changed

+4263
-5452
lines changed

11 files changed

+4263
-5452
lines changed

JetStreamDriver.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ class WasmEMCCBenchmark extends AsyncBenchmark {
10361036
let Module = {
10371037
preRun: [],
10381038
postRun: [],
1039+
noInitialRun: true,
10391040
print: print,
10401041
printErr: printErr,
10411042
setStatus: function(text) {
@@ -1350,11 +1351,12 @@ class WasmLegacyBenchmark extends Benchmark {
13501351

13511352
console.log(" Startup:", uiFriendlyNumber(this.startupTime));
13521353
console.log(" Run time:", uiFriendlyNumber(this.runTime));
1354+
console.log(" Score:", uiFriendlyNumber(this.score));
13531355
if (RAMification) {
13541356
console.log(" Current Footprint:", uiFriendlyNumber(this.currentFootprint));
13551357
console.log(" Peak Footprint:", uiFriendlyNumber(this.peakFootprint));
13561358
}
1357-
console.log(" Score:", uiFriendlyNumber(this.score));
1359+
console.log(" Wall time:", uiFriendlyDuration(new Date(this.endTime - this.startTime)));
13581360
}
13591361
};
13601362

@@ -1913,12 +1915,14 @@ const testPlans = [
19131915
{
19141916
name: "gcc-loops-wasm",
19151917
files: [
1916-
"./wasm/gcc-loops.js"
1918+
"./wasm/gcc-loops/build/gcc-loops.js",
1919+
"./wasm/gcc-loops/benchmark.js",
19171920
],
19181921
preload: {
1919-
wasmBinary: "./wasm/gcc-loops.wasm"
1922+
wasmBinary: "./wasm/gcc-loops/build/gcc-loops.wasm"
19201923
},
1921-
benchmarkClass: WasmLegacyBenchmark,
1924+
benchmarkClass: WasmEMCCBenchmark,
1925+
iterations: 50,
19221926
testGroup: WasmGroup
19231927
},
19241928
{

wasm/TSF/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -euo pipefail
44

55
touch build.log
66
BUILD_LOG="$(realpath build.log)"
7-
echo "Built on $(date -u '+%Y-%m-%dT%H:%M:%SZ')\n" | tee "$BUILD_LOG"
7+
echo "Built on $(date -u '+%Y-%m-%dT%H:%M:%SZ')" | tee "$BUILD_LOG"
88

99
echo "Toolchain versions" | tee -a "$BUILD_LOG"
1010
emcc --version | head -n1 | tee -a "$BUILD_LOG"

0 commit comments

Comments
 (0)