Example project which demonstrates how to run JMH Benchmark tests using docker.
The testcontainers Java test library will be used to generate and run a container which contains the JMH tests.
Just run the JMHRunnerTest
. This test will build and run the docker container. By default the results will be stored on the docker host in the /opt/results
folder.
The setup will also generate a combined provided.js
of all previously found benchmark result files. You can run the JMH Visualizer to display the these combined results.
docker run -p 8080:80 -v /opt/results/provided.js:/usr/share/nginx/html/provided.js jotschi/jmh-visualizer