1
0

Complete runnable Vector API (JEP 537) demo

SIMD kernels (square-and-add, masked filter, brightness clamp, FP reduction ordering), an exploratory timing harness, JMH benchmarks with Maven and Maven-free builds, run scripts, README and the captured results with their exact environment.
This commit was merged in pull request #1.
This commit is contained in:
2026-07-26 11:50:15 +00:00
parent e4695ab334
commit 780848e102
18 changed files with 824 additions and 2 deletions

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