jreijn / spring-comparing-template-engines

Demo project to show different Java templating engines in combination with Spring MVC
Apache License 2.0
422 stars 116 forks source link

Add jstachio #127

Open agentgt opened 10 months ago

agentgt commented 10 months ago

I had to backport some automatic stuff we do for Spring Boot 3 because this project is Spring Boot 2 (javax instead of jakarta).

My testing it shows it faster than JSP and the same speed as Rocker. I'm surprised the readme shows Rocker as slower.

BTW the apache tomcat response stream buffer should probably be set higher.

Vest commented 10 months ago

The project doesn’t cache pages. If you enable caches, you just test the “HashMap” implementation. maybe that’s is why some frameworks are slower.

agentgt commented 10 months ago

The project doesn’t cache pages. If you enable caches, you just test the “HashMap” implementation. maybe that’s is why some frameworks are slower.

I don't follow nor understand why that matters for the PR.

All I did was follow the readme by building, mvn spring-boot:run and ran the script (which my PR accidentally made a copy of I just noticed... I will delete that later today).

It should not be surprising that Rocker or JStachio "might" run faster "on my machine" than JSP as they do the same thing: compile to Java.