From 97b0f752cc92c379c9a1665aa5d31423df565c99 Mon Sep 17 00:00:00 2001 From: Benjamin Prud'homme Date: Mon, 19 Aug 2024 12:57:06 -0400 Subject: [PATCH] JMH shell script --- run_jmh.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 run_jmh.sh diff --git a/run_jmh.sh b/run_jmh.sh new file mode 100755 index 000000000..b25f400bb --- /dev/null +++ b/run_jmh.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Compose image +docker compose -f docker/Linux-JDK21/docker-compose.yml up --build -d + +# Run JMH inside container +docker exec -it linux-jdk21-cantaloupe-1 mvn --batch-mode test -Pbenchmark > out.txt + +# Once done, kill processes +docker kill linux-jdk21-cantaloupe-1 +docker kill linux-jdk21-minio-1 +docker kill linux-jdk21-redis-1