The #858 nightly runner uses the installed #839 JVM benchmark in manual/.
#858 uses the same interfaces and starts and stops each timer at the same points.
The runner does not build the benchmark or patch Cargo. From the binding root
on Linux x86_64 (glibc):
# JAVA_HOME: Eclipse Temurin 17.0.17+10; WORKFLOW_SHA: actual core workflow SHA.
export BENCH_SHA=$(git -C "$CORE_CHECKOUT" rev-parse HEAD)
CARGO_BUILD_JOBS=4 CORE_REVISION="$BENCH_SHA" \
bash bench/manual/build.sh "$CORE_CHECKOUT"
bash bench/nightly.sh --test
bash bench/nightly.shOnly the build script patches the core dependency and verifies where Cargo
resolves it. The runner checks the recorded core and binding commits against
BENCH_SHA and the binding checkout’s HEAD, and requires WORKFLOW_SHA and
JAVA_HOME. It rejects JVM/native override
environment variables and validates the measured JVM's vendor, full version,
and actual flags: -Xms512m -Xmx512m -XX:+UseG1GC.
The smoke test saves raw correctness checks to a new smoke/ directory. It
does not start any timers or write metrics or provenance files. A timed run writes fresh samples to
benchmark/samples.jsonl. It saves the tested native library from the installed
binding JAR as benchmark/libminigraf_ffi.so, verifies it against the build, and
writes binding-provenance.json and binding-results.json in the binding root. Each of the 14 latency values is the median of ten sample means
in nanoseconds. Short cases use 100 warmups and 20 operations per sample;
the two write cases use five warmups and one operation per sample. Startup is
outside timing; JNA/conversion/callback costs remain included. Warmups do not show
that the JVM's JIT has stabilized.
The runner prints the 14 ok: lines only after the process exits successfully,
cleanup finishes, and the output is complete and passes validation. It fails if any
output directory, metrics file, or provenance file already exists. Archive or
remove the previous run’s outputs first. The core workflow uploads and audits
results and pins the test machine to Ubuntu 24.04. See its
docs/BINDING_BENCHMARKS.md
for the definitive benchmark IDs, what each timer includes, and the provenance
format.
Tests (also run by the existing PR Java job after building the binding JAR):
bash java/gradlew -p bench/manual --no-daemon test
python3 -I -m unittest discover -s bench/tests -v