Benchmarks are run in the JVM and compare time execution of:
- This lib
Ktm
- Mustache.java
The test is to parse and render the same document.
- Simple [link]:
- Complex [link]:
- Multiple (x1, x10, x50) [link]:
- Smoke:
./gradlew :benchmark:jvmMainSmokeBenchmark
- Full:
./gradlew :benchmark:jvmMainBenchmark
Overall, performance is good:
- Parsing documents in
Ktm
is faster thanMustache.java
. - Rendering documents is as fast as
Mustache.java
.
On my mac mini:
Host: Mac mini 2023
CPU: M2
OS: macOS Sonoma Version 14.2.1
java version "21.0.1" 2023-10-17-LTS