Beetl升级了Antlr到4.9.2.性能测试结果....

原创
2021/07/19 18:25
阅读数 1.2K

更新了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

展开阅读全文
加载中
点击加入讨论🔥(4) 发布并加入讨论🔥
4 评论
0 收藏
0
分享
返回顶部
顶部