Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
10 lines
457 B
Bash
Executable File
10 lines
457 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Runs the JMH benchmark. Defaults: 3 forks, 3 x 1s warmup, 8 x 1s measurement. Takes about four minutes.
|
|
# Usage: ./scripts/run-benchmark.sh [extra JMH args]
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
J="${JDK25_HOME:+$JDK25_HOME/bin/}java"
|
|
mkdir -p output
|
|
"$J" -cp "target/classes:target/lib/*" org.openjdk.jmh.Main MappingBenchmark \
|
|
-f 3 -wi 3 -w 1s -i 8 -r 1s -rf json -rff output/07-benchmark.json "$@" 2>&1 | grep -v "Picked up"
|