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 | 6.652 |
velocity | 3.728 |
freemarker | 2.616 |
thymeleaf | 6.932 |
mustache | 3.100 |
jade | 3.503 |
pebble | 3.519 |
handlebars | 13.405 |
scalate | 3.987 |
httl | 3.430 |
chunk | 4.430 |
htmlFlow | 1.670 |
trimou | 2.059 |
rocker | 1.957 |
ickenham | 4.342 |
rythm | 3.411 |
groovy | 751.200 |
kotlinx | 2.422 |
jte | 2.940 |
results taken from mvn and jvm :Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39) Maven home: /usr/share/apache-maven-3.8.8 Java version: 23, vendor: Eclipse Adoptium, runtime: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/23.0.0-37/x64 Default locale: en, platform encoding: UTF-8 OS name: “linux”, version: “6.5.0-1025-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.