分享 High Performance Haml Implementation

i5ting · 2015年03月31日 · 最后由 lgn21st 回复于 2015年03月31日 · 1528 次阅读

High Performance Haml Implementation

https://github.com/k0kubun/hamlit

Fast rendering

Hamlit's rendering is 8.47x times faster than original haml.

hamlit:   133922.9 i/s
erubis:   123464.1 i/s - 1.08x slower
  slim:   110404.3 i/s - 1.21x slower
  faml:    92009.3 i/s - 1.46x slower
  haml:    15810.4 i/s - 8.47x slower

This benchmark is the same as slim-template/slim's one for fairness. (The result on travis CI)

开起来还不错的样子

居然比 erubis 快这么多,太让人振奋了!

需要 登录 后方可回复, 如果你还没有账号请 注册新账号