Beetl升級了Antlr到4.9.2.性能測試結果....

更新了Antlr到4.9.2,另外,其他模板引擎也升級到最新版本,測試結果如下

Benchmark             (outputType)   Mode  Cnt      Score      Error  Units
Beetl.benchmark                  1  thrpt    5  84457.196 ± 1023.689  ops/s
Freemarker.benchmark             1  thrpt    5  23607.474 ±  391.247  ops/s
Handlebars.benchmark             1  thrpt    5  22654.605 ±  412.977  ops/s
Thymeleaf.benchmark              1  thrpt    5   6968.233 ±  105.056  ops/s

不得不說,thymeleaf的測試結果還是慘不忍睹啊。說明一下,Handlebars也使用了antlr

測試代碼:https://gitee.com/xiandafu/template-benchmark

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章