blob: 57952d9d1e78599dc1e45212916787aec7cef6bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
# Check JAVA_HOME points to correct java version
./scripts/check_java_home.sh
# Compile the benchmark
mvn test-compile
# Emit the dependencies classpath
mvn dependency:build-classpath -DincludeScope=test -Dmdep.outputFile=scripts/classpath.txt
# Run the benchmark
java -cp $(cat scripts/classpath.txt):target/classes:target/test-classes --illegal-access=warn org.openjdk.jmh.Main BenchmarkPruner
# Clean up
rm scripts/classpath.txt
|