代码拉取完成,页面将自动刷新
同步操作将从 闲.大赋(李家智)/template-benchmark 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
mvn clean install
java -jar target/benchmarks.jar
java -jar target/benchmarks.jar Beetl
Benchmark (outputType) Mode Cnt Score Error Units
Beetl.benchmark 1 thrpt 10 86499.426 ± 819.202 ops/s
Beetl.benchmark 2 thrpt 10 53523.776 ± 365.894 ops/s
Beetl.benchmark 3 thrpt 10 97586.864 ± 947.663 ops/s
Freemarker.benchmark 1 thrpt 10 23655.886 ± 118.846 ops/s
Freemarker.benchmark 2 thrpt 10 19697.882 ± 115.250 ops/s
Handlebars.benchmark 1 thrpt 10 22828.835 ± 220.474 ops/s
Handlebars.benchmark 2 thrpt 10 22885.014 ± 194.975 ops/s
JFinal.benchmark 1 thrpt 10 74501.952 ± 840.441 ops/s
JFinal.benchmark 2 thrpt 10 49252.672 ± 284.398 ops/s
JFinal.benchmark 3 thrpt 10 88973.531 ± 1409.273 ops/s
Rocker.benchmark 1 thrpt 10 50437.848 ± 475.690 ops/s
Rocker.benchmark 2 thrpt 10 31419.460 ± 95.329 ops/s
Rocker.benchmark 3 thrpt 10 88109.687 ± 645.572 ops/s
Thymeleaf.benchmark 1 thrpt 10 7199.343 ± 77.446 ops/s
Thymeleaf.benchmark 2 thrpt 10 5481.519 ± 44.072 ops/s
Velocity.benchmark 1 thrpt 10 7928.416 ± 126.237 ops/s
Velocity.benchmark 2 thrpt 10 7110.021 ± 99.296 ops/s
Benchmark (outputType) Mode Cnt Score Error Units
Beetl.benchmark 1 thrpt 10 399650.018 ± 5267.017 ops/s
Beetl.benchmark 2 thrpt 10 227805.586 ± 1376.397 ops/s
Beetl.benchmark 3 thrpt 10 389779.874 ± 5796.863 ops/s
Freemarker.benchmark 1 thrpt 10 120212.045 ± 1406.250 ops/s
Freemarker.benchmark 2 thrpt 10 99093.944 ± 482.070 ops/s
Handlebars.benchmark 1 thrpt 10 112414.319 ± 592.529 ops/s
Handlebars.benchmark 2 thrpt 10 114264.442 ± 850.765 ops/s
JFinal.benchmark 1 thrpt 10 299089.547 ± 5139.087 ops/s
JFinal.benchmark 2 thrpt 10 205477.432 ± 3533.227 ops/s
JFinal.benchmark 3 thrpt 10 371156.576 ± 5766.780 ops/s
Rocker.benchmark 1 thrpt 10 224646.481 ± 1980.803 ops/s
Rocker.benchmark 2 thrpt 10 137806.640 ± 2088.926 ops/s
Rocker.benchmark 3 thrpt 10 373242.178 ± 3287.081 ops/s
Thymeleaf.benchmark 1 thrpt 10 33877.492 ± 936.758 ops/s
Thymeleaf.benchmark 2 thrpt 10 24462.026 ± 923.647 ops/s
Velocity.benchmark 1 thrpt 10 32304.782 ± 790.253 ops/s
Velocity.benchmark 2 thrpt 10 29537.516 ± 845.503 ops/s
输出类型
需要修改BaseBenchmark的outputType,更改如下,则同时测试三种场景
@Param({"1","2","3"})
int outputType;
需要满足ExpectedOutputTest单元测试,需要满足3种输出类型(如果不满足,抛出异常即可)
测试源码来自 https://github.com/fizzed/template-benchmark 做了一点调整,支持三种输出类型
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。