Skip to content

Commit 0d10d32

Browse files
committed
Run SIMD microbenchmarks from WatBenchmarkSuite in CI
1 parent f3b3fd2 commit 0d10d32

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

wasm/ci/ci.jsonnet

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ jdks + wasm_common +
4040
BENCH_VM_CONFIG: 'graal-core',
4141
},
4242
},
43+
44+
$.jdkLatest + $.linux_amd64 + $.bench_daily + $.bench_graalwasm_emsdk_full + {
45+
name: 'bench-graalwasm-wat-micro' + self.name_suffix,
46+
environment+: {
47+
BENCH_RUNNER: 'run-wat-micro-benchmarks',
48+
BENCH_VM: 'server',
49+
BENCH_VM_CONFIG: 'graal-core',
50+
},
51+
},
4352
],
4453

4554
builds: utils.add_defined_in(_builds, std.thisFile),

wasm/scripts/run-wat-micro-benchmarks

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
3+
# Runs SIMD benchmarks from the wat suite.
4+
5+
set -e
6+
7+
RESULTS_FILE_PATH=$1
8+
VM=$2
9+
VM_CONFIG=$3
10+
UPLOAD_CMD=$4
11+
12+
for benchmark in vector-double-mul vector-double-nearest vector-double-round vector-int-add vector-int-mix vector-int-mul
13+
do
14+
mx --dy /compiler --kill-with-sigquit benchmark \
15+
"--machine-name=${MACHINE_NAME}" \
16+
"--results-file=${RESULTS_FILE_PATH}" \
17+
wasm:WASM_BENCHMARKCASES -- \
18+
--jvm ${VM} --jvm-config ${VM_CONFIG} \
19+
--add-modules=jdk.incubator.vector \
20+
-Dwasmbench.benchmarkName=$benchmark -- \
21+
WatBenchmarkSuite
22+
23+
${UPLOAD_CMD} "${RESULTS_FILE_PATH}"
24+
done

0 commit comments

Comments
 (0)