My company is currently working on a project based on Thymeleaf 2.1.4. In the forum we found an announcement that Thymeleaf 3 is coming and so we asked ourselves how big the performance change will be between Thymeleaf 2.x and Thymeleaf 3.x.
Also there was a comment about a speed change from 1000 pages per second to 11000 pages per second, but there was no comparison to other template frameworks like Mustache or
Freemaker. Therefore we will do a small comparison here.
Note: We have used a SNAPSHOT version, which is something like a alpha/beta version. Therefore treat the results with caution.
Testing machine: Macbook Pro Retina 13 with 8GB RAM and Intel Core i5 with 2.6 GHz.
Benchmark with Thymeleaf 2.1.4.RELEASE
Benchmark with Thymeleaf 3.0 Snapshot
In our case the benchmark shows an improvement of Thymeleaf 3.0 (Snapshot) being nearly 3 times faster than Thymeleaf 2.1.4. In comparison to the other template engines Thymeleaf is in this use case still slow ;-)