分享 High Performance Haml Implementation

i5ting · March 31, 2015 · Last by lgn21st replied at March 31, 2015 · 1528 hits

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 快这么多,太让人振奋了!

You need to Sign in before reply, if you don't have an account, please Sign up first.