tipsy / j2html

Java to HTML generator. Enjoy typesafe HTML generation.
https://j2html.com/
Apache License 2.0
765 stars 136 forks source link

Consider performance-comparison between jsp/template-engines and j2html #94

Closed tipsy closed 6 years ago

tipsy commented 6 years ago

Added some comparison-tests with velocity here: https://github.com/tipsy/j2html/commit/0b92a963e988df85b070926a0b19ea9882983128

tipsy commented 6 years ago

Would be nice if someone could expand on it to cover different scenarios. Results so far:

j2htmlPerformance: [measured 20000 out of 20200 rounds, threads: 2 (physical processors: 8)]
round: 0.00 [+- 0.00], round.block: 0.00 [+- 0.00], round.gc: 0.00 [+- 0.00], 
GC.calls: 6, GC.time: 0.02, time.total: 0.38, time.warmup: 0.07, time.bench: 0.31

velocityPerformance: [measured 20000 out of 20200 rounds, threads: 2 (physical processors: 8)]
round: 0.00 [+- 0.00], round.block: 0.00 [+- 0.00], round.gc: 0.00 [+- 0.00], 
GC.calls: 5, GC.time: 0.05, time.total: 7.51, time.warmup: 0.42, time.bench: 7.09
tipsy commented 6 years ago

We can probably live without this.