OfficeFloor icon indicating copy to clipboard operation
OfficeFloor copied to clipboard

TechEmpower Benchmarks Fortunes is not using a templating

Open agentgt opened this issue 1 year ago • 2 comments

I am a great admirer of your framework and saw how well you did on TechEmpower but I'm saddened that you borderline cheated (in spirit) on the Fortune benchmark.

You are supposed to use a templating language and not just hard code Java strings as bytes.

Anyway I think you will get similar results to your hard coding if you use Rocker or my templating engine JStachio (both pre-encode like you manually did albeit mine needs an experimental flag turned on JStacheFlags(flags=PRE_ENCODE)).

Here is some JMH benchmarking: https://github.com/agentgt/template-benchmark

If you are interested I can try to plug it in the TechEmpower Framework code as branch/PR.

agentgt avatar May 17 '23 22:05 agentgt