Demo project to show different Java templating engines in combination with Spring boot MVC at https://ozkanpakdil.github.io/spring-comparing-template-engines/
View the Project on GitHub ozkanpakdil/spring-comparing-template-engines
lower is the better
Engine Name | Seconds |
---|---|
jsp | 4.393 |
velocity | 3.118 |
freemarker | 3.384 |
thymeleaf | 7.097 |
mustache | 3.459 |
jade | 128.553 |
pebble | 9.484 |
handlebars | 19.632 |
scalate | 9.847 |
httl | 4.241 |
chunk | 4.972 |
htmlFlow | 3.462 |
trimou | 3.697 |
rocker | 3.626 |
ickenham | 5.943 |
rythm | 3.912 |
groovy | 835.431 |
liqp | 7.490 |
kotlinx | 4.355 |
results taken from mvn and jvm :Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: /usr/share/apache-maven-3.8.6 Java version: 17.0.5, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/temurin-17-jdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: “linux”, version: “5.15.0-1024-azure”, arch: “amd64”, family: “unix”
Runs performance test(ab -q -n 10000 -c 10 http://localhost:8080/TEMPLATE) from Github Actions and updates here.
If you are planning to use any template engine from the list, choose wisely, lowest is the best performance.