Skip to content

Commit f950296

Browse files
committed
Added some basic documentation about running these JMH tests
1 parent 9beb635 commit f950296

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
# Apache Camel Performance Tests
22

33
This project provides performance tests for Apache Camel.
4+
5+
## Running the Performance Tests
6+
7+
### Camel JMH
8+
9+
The performance tests located in the `camel-jmh` module can be run using the following command:
10+
11+
```bash
12+
mvn -l camel-${version}-jmh-test.log -DargLine="-XX:+UseNUMA -Xmx4G -Xms4G -server" -Dcamel.version=${version} -Pjmh -Dtest=${TESTS} clean test
13+
```
14+
15+
Where:
16+
* `${version}` is the Apache Camel version to use.
17+
* `${TESTS}` is a comma-separated list of tests to run (e.g., `AggregatorTest,ContentBasedRouterBodyTest`).
18+
19+
After running the tests, the results are stored in JMH JSON files (i.e.: `<test name>.jmh.json`).

0 commit comments

Comments
 (0)