LoginSignup
3
3

More than 5 years have passed since last update.

java による template engine benchmarks のリポジトリ実行してみた

Posted at

https://github.com/agentgt/template-engine-benchmarks やってみました。

mac で clone して ant all しただけ

stringbuilder:
     [java] ntimes: 10000, real time: 505(msec)

freemarker:
     [java] ntimes: 10000, real time: 1507(msec)

velocity:
     [java] ntimes: 10000, real time: 1089(msec)

beetl:
     [java] ntimes: 10000, real time: 749(msec)

rythm:
     [java] ntimes: 10000, real time: 632(msec)
     [java] 3 25, 2016 7:18:57 午後 org.rythmengine.RythmEngine
     [java] 情報: Shutting down Rythm Engine: [re-E0S]

jamon:
     [java] ntimes: 10000, real time: 971(msec)

httl:
     [java] ntimes: 10000, real time: 461(msec)

jmte:
     [java] ntimes: 10000, real time: 1589(msec)

jangod:
     [java] ntimes: 10000, real time: 7038(msec)

thymeleaf:
     [java] ntimes: 10000, real time: 12632(msec)

mustache:
     [java] ntimes: 10000, real time: 903(msec)

jmustache:
     [java] ntimes: 10000, real time: 1906(msec)

handlebars:
     [java] ntimes: 10000, real time: 1775(msec)

image

↓ thymeleaf,jangod を除いたグラフ

image

spring boot でレンダリングの速度気にするなら freemarker か mustache かな?
thymeleaf なら csrf token 自動挿入、html 自動エスケープ(?) のメリットもある。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3