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

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