Files
java-core-examples/jmh-basics/scripts/run.sh
T
asmhatreandClaude Sonnet 5.5 db129fb1ce jmh-basics: JMH tutorial module (dead-code elimination, Blackhole, constant folding, warmup/forks, state scopes, -prof gc)
Eight benchmark/demo classes, a deterministic test suite, and 12 captured output files
generated by scripts/run-all.sh on JDK 25.0.5 (Temurin) with JMH 1.37.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6Fj2JNt7dRev4pZPe
2026-11-08 18:31:11 +00:00

7 lines
217 B
Bash
Executable File

#!/usr/bin/env bash
# Run one demo class ad hoc, e.g.: ./scripts/run.sh NaiveTimingDemo
set -euo pipefail
cd "$(dirname "$0")/.."
mvn -q -B package -DskipTests
java -cp target/benchmarks.jar "com.ankurm.jmhbasics.$1"