This commit is contained in:
Brian Neumann-Fopiano
2026-07-10 04:05:24 -04:00
parent 6111b5670a
commit 402bcb04fe
112 changed files with 5610 additions and 733 deletions
+3
View File
@@ -30,6 +30,9 @@ macOS / Linux:
./run.sh
```
The run scripts compile the sources and create the ignored `simd-bench.jar` locally when it is
missing. Use `build.bat` or `./build.sh` to rebuild it explicitly.
Or invoke directly (the `--add-modules` flag is required because the Vector API
is still an incubator module):
+14
View File
@@ -0,0 +1,14 @@
@echo off
setlocal
cd /d "%~dp0"
if exist out rmdir /s /q out
mkdir out
dir /s /b src\*.java > sources.txt
javac --release 25 --add-modules jdk.incubator.vector -d out @sources.txt
if errorlevel 1 (
del sources.txt
exit /b 1
)
del sources.txt
jar --create --file simd-bench.jar --main-class simdbench.Bench -C out .
exit /b %errorlevel%
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
sources_file="$(mktemp)"
trap 'rm -f "$sources_file"' EXIT
find src -name '*.java' -print | sort > "$sources_file"
rm -rf out
mkdir -p out
javac --release 25 --add-modules jdk.incubator.vector -d out "@$sources_file"
jar --create --file simd-bench.jar --main-class simdbench.Bench -C out .
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2
View File
@@ -1,2 +1,4 @@
@echo off
call build.bat
if errorlevel 1 exit /b 1
java --add-modules jdk.incubator.vector -jar simd-bench.jar %*
+3
View File
@@ -1,4 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [[ ! -f simd-bench.jar ]] || find src -name '*.java' -newer simd-bench.jar | grep -q .; then
./build.sh
fi
java --add-modules jdk.incubator.vector -jar simd-bench.jar "$@"
Binary file not shown.