JMH benchmark of the most popular Java template engines
JMH benchmark for popular Java template engines:
mvn clean install
)java -jar target/benchmarks.jar
java -jar target/benchmarks.jar Mustache
java -jar target/benchmarks.jar -rff results.csv -rf csv
gnuplot benchmark.plot
. This will output results.png
.It is imperative that each template engine is configured in way to reflect real-world usage as opposed to it’s optimal configuration. Typically this means an out-of-the-box configuration.
To strive for a common set of features across template engines, the following configurations are expected:
The benchmarks measure throughput, given in “ops/time”. The time unit used is seconds.
Generally, the score represents the number of templates rendered per second; the higher the score, the better.