-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_QueryEntityQueryReferringEntityAll.sh
27 lines (22 loc) · 2.15 KB
/
run_QueryEntityQueryReferringEntityAll.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
function usage() {
echo "Usage:"
echo
echo " $0 <orm_version>"
echo
echo " <orm> The ORM version to test (e.g. 6.6 or perf)"
}
ORM_VERSION=$1
if [ -z "$ORM_VERSION" ]; then
echo "ERROR: ORM version not supplied"
usage
exit 1
fi
./gradlew jmhJar -Porm=${ORM_VERSION}
java -jar basic/target/libs/hibernate-orm-benchmark-basic-1.0-SNAPSHOT-jmh.jar QueryEntityQueryReferringEntityAll -f 2 -prof gc -prof "async:rawCommand=alloc,wall;event=cpu;output=jfr;dir=/tmp;libPath=${ASYNC_PROFILER_HOME}/lib/libasyncProfiler.so" -pcount=100
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --alloc --total /tmp/org.hibernate.benchmark.queryl1hit.QueryEntityQueryReferringEntityAll.noQueryAccess-Throughput/jfr-cpu.jfr QueryEntityQueryReferringEntityAll-noQueryAccess-alloc-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state default /tmp/org.hibernate.benchmark.queryl1hit.QueryEntityQueryReferringEntityAll.noQueryAccess-Throughput/jfr-cpu.jfr QueryEntityQueryReferringEntityAll-noQueryAccess-cpu-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state runnable,sleeping /tmp/org.hibernate.benchmark.queryl1hit.QueryEntityQueryReferringEntityAll.noQueryAccess-Throughput/jfr-cpu.jfr QueryEntityQueryReferringEntityAll-noQueryAccess-wall-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --alloc --total /tmp/org.hibernate.benchmark.queryl1hit.QueryEntityQueryReferringEntityAll.includeQueryAccess-Throughput/jfr-cpu.jfr QueryEntityQueryReferringEntityAll-includeQueryAccess-alloc-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state default /tmp/org.hibernate.benchmark.queryl1hit.QueryEntityQueryReferringEntityAll.includeQueryAccess-Throughput/jfr-cpu.jfr QueryEntityQueryReferringEntityAll-includeQueryAccess-cpu-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state runnable,sleeping /tmp/org.hibernate.benchmark.queryl1hit.QueryEntityQueryReferringEntityAll.includeQueryAccess-Throughput/jfr-cpu.jfr QueryEntityQueryReferringEntityAll-includeQueryAccess-wall-${ORM_VERSION}.html