-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_QueryImmutableEntity.sh
24 lines (19 loc) · 1.19 KB
/
run_QueryImmutableEntity.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
#!/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 QueryImmutableEntity -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.QueryImmutableEntity.single-Throughput/jfr-cpu.jfr QueryImmutableEntity-alloc-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state default /tmp/org.hibernate.benchmark.onetomanyfetch.QueryImmutableEntity.single-Throughput/jfr-cpu.jfr QueryImmutableEntity-cpu-${ORM_VERSION}.html
java -cp ${ASYNC_PROFILER_HOME}/lib/converter.jar jfr2flame --state runnable,sleeping /tmp/org.hibernate.benchmark.onetomanyfetch.QueryImmutableEntity.single-Throughput/jfr-cpu.jfr QueryImmutableEntity-wall-${ORM_VERSION}.html