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