1
0

Add run script for the timing experiments

This commit is contained in:
2026-07-26 11:46:52 +00:00
parent 0dcf71c0ea
commit 0b7eabcd8e

9
timings/run.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Compile and run the exploratory timing experiments from the article.
# ./run.sh -> default run (C2 auto-vectorization ON)
# ./run.sh -XX:-UseSuperWord -> same experiments with SuperWord disabled
set -euo pipefail
cd "$(dirname "$0")"
mkdir -p out
javac --add-modules jdk.incubator.vector -d out $(find src -name '*.java')
java --add-modules jdk.incubator.vector "$@" -cp out com.ankurm.vectorapi.Main