Skip to content

Commit

Permalink
adjust for CGC
Browse files Browse the repository at this point in the history
  • Loading branch information
alina-yur committed Aug 6, 2024
1 parent 1a632d3 commit 2af5595
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions bench-native-cgc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
set -e

function print() {
printf "\033[1;35m$1\033[0m\n"
}

print "Starting the native app 🚀"

./target/demo-compacting-gc -Xmx512m &
export PID=$!
psrecord $PID --plot "$(date +%s)-graalvm-native.png" --max-cpu 2200 --max-memory 900 --include-children &

sleep 2
print "Done waiting for startup..."

print "Executing warmup load"
hey -n=250000 -c=8 http://localhost:8080/hello

print "Executing benchmark load"
hey -n=250000 -c=8 http://localhost:8080/hello

print "Native run done!🎉"
kill $PID
sleep 1
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<configuration>
<imageName>compacting-gc</imageName>
<imageName>demo-compacting-gc</imageName>
<buildArgs>
<buildArg>-H:+CompactingOldGen</buildArg>
</buildArgs>
Expand Down

0 comments on commit 2af5595

Please sign in to comment.