From 4988f1c1b62a9219eea139474c3a24d0411b8704 Mon Sep 17 00:00:00 2001 From: Otavio Rodolfo Piske Date: Wed, 16 Jul 2025 14:18:40 +0200 Subject: [PATCH] Added some basic documentation about running these JMH tests --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 68dc051..d954173 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ # Apache Camel Performance Tests This project provides performance tests for Apache Camel. + +## Running the Performance Tests + +### Camel JMH + +The performance tests located in the `camel-jmh` module can be run using the following command: + +```bash +mvn -l camel-${version}-jmh-test.log -DargLine="-XX:+UseNUMA -Xmx4G -Xms4G -server" -Dcamel.version=${version} -Pjmh -Dtest=${TESTS} clean test +``` + +Where: +* `${version}` is the Apache Camel version to use. +* `${TESTS}` is a comma-separated list of tests to run (e.g., `AggregatorTest,ContentBasedRouterBodyTest`). + +After running the tests, the results are stored in JMH JSON files (i.e.: `.jmh.json`).