summaryrefslogtreecommitdiff
path: root/scripts/benchmark.sh
blob: 313df5033505b85a0c28d6997dcc180e8e284b3e (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