🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 4.10 性能测试对比 测试用例一 [https://github.com/javamonkey/ebm](https://github.com/javamonkey/ebm) ![beetl1](https://img.kancloud.cn/3e/5a/3e5a21116a70ada67e2e87fcd1ffb93b_1043x475.jpg) 测试用例二 [http://git.oschina.net/kiang/teb](http://git.oschina.net/kiang/teb) ![beetl2](https://img.kancloud.cn/cf/c5/cfc53b11ba65bf2b42c33b7a5c93997d_827x243.png) 测试用例三 [https://github.com/javamonkey/template-benchmark](https://github.com/javamonkey/template-benchmark) ![beetl3](https://img.kancloud.cn/45/5e/455ec12f208896d83b7b7f7bdab6add1_697x406.png) | Benchmark | version | Threads | Samples | Score | Score Error (99.9%) | Unit | | -------------- | ------- | ------- | ------- | ---------------- | ------------------- | ----- | | **Beetl** | 2.7 | 1 | 50 | **42125.112914** | 3512.147131 | ops/s | | **Freemarker** | 2.3 | 1 | 50 | **13099.139808** | 339.612022 | ops/s | | **Handlebars** | 4.0 | 1 | 50 | **15808.044125** | 235.109622 | ops/s | | **Mustache** | 0.9 | 1 | 50 | **17961.391809** | 158.524109 | ops/s | | **Rocker** | 0.1 | 1 | 50 | **33631.370722** | 417.915637 | ops/s | | **Thymeleaf** | 3.0 | 1 | 50 | **4625.981276** | 67.313609 | ops/s | > #### 注意 {docsify-ignore} > > Score得分越高表示模板引擎每秒处理量越大性能越好 > > 这个性能测试基本上结合了国内外的模板引擎,随着JDK版本的升级,JDK8提高了反射能力,减少了和Freemarker等模板引擎的性能差距,但Beetl依旧以3倍以上的性能优势秒杀Freemarker。