-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_QueryOneToManyFetch.sh
27 lines (22 loc) · 1.92 KB
/
run_QueryOneToManyFetch.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 QueryOneToManyFetch -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.onetomanyfetch.QueryOneToManyFetch.single-Throughput-orderLines-1/jfr-cpu.jfr QueryOneToManyFetch-1-alloc-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state default /tmp/org.hibernate.benchmark.onetomanyfetch.QueryOneToManyFetch.single-Throughput-orderLines-1/jfr-cpu.jfr QueryOneToManyFetch-1-cpu-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state runnable,sleeping /tmp/org.hibernate.benchmark.onetomanyfetch.QueryOneToManyFetch.single-Throughput-orderLines-1/jfr-cpu.jfr QueryOneToManyFetch-1-wall-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --alloc --total /tmp/org.hibernate.benchmark.onetomanyfetch.QueryOneToManyFetch.single-Throughput-orderLines-50/jfr-cpu.jfr QueryOneToManyFetch-50-alloc-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state default /tmp/org.hibernate.benchmark.onetomanyfetch.QueryOneToManyFetch.single-Throughput-orderLines-50/jfr-cpu.jfr QueryOneToManyFetch-50-cpu-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state runnable,sleeping /tmp/org.hibernate.benchmark.onetomanyfetch.QueryOneToManyFetch.single-Throughput-orderLines-50/jfr-cpu.jfr QueryOneToManyFetch-50-wall-${ORM_VERSION}.html