Update benchmark result

close #106
This commit is contained in:
Takashi Kokubun 2017-05-27 09:29:56 +09:00
parent b84f22a96f
commit 562a4870af
1 changed files with 8 additions and 8 deletions

View File

@ -10,17 +10,17 @@ Hamlit is a high performance [Haml](https://github.com/haml/haml) implementation
### What is Hamlit?
Hamlit is another implementation of [Haml](https://github.com/haml/haml).
With some [limitations](REFERENCE.md#limitations) by design for performance,
Hamlit is **8.54x times faster** than original haml gem in [this benchmark](benchmark/slim/run-benchmarks.rb),
which is an HTML-escaped version of [slim-template/slim's one](https://github.com/slim-template/slim/blob/v3.0.6/benchmarks/run-benchmarks.rb) for fairness. ([Result on Travis](https://travis-ci.org/k0kubun/hamlit/jobs/93928561))
Hamlit is **2.39x times faster** than original haml gem in [this benchmark](benchmark/slim/run-benchmarks.rb),
which is an HTML-escaped version of [slim-template/slim's one](https://github.com/slim-template/slim/blob/v3.0.8/benchmarks/run-benchmarks.rb) for fairness. ([Result on Travis](https://travis-ci.org/k0kubun/hamlit/jobs/236567391))
![Hamlit Benchmark](https://i.gyazo.com/ac9eb910c7261cc0181bd7427c860d79.png)
![Hamlit Benchmark](https://i.gyazo.com/0f0c0362b6bd69f82715bec1d8caa191.png)
```
hamlit v2.0.1: 122622.3 i/s
faml v0.7.0: 94239.1 i/s - 1.30x slower
slim v3.0.6: 89143.0 i/s - 1.38x slower
erubis v2.7.0: 65047.8 i/s - 1.89x slower
haml v5.0.0.beta.2: 14363.6 i/s - 8.54x slower
hamlit v2.8.1: 131048.9 i/s
erubi v1.6.0: 125445.4 i/s - 1.04x slower
slim v3.0.8: 121390.4 i/s - 1.08x slower
faml v0.8.1: 100750.5 i/s - 1.30x slower
haml v5.0.1: 54882.6 i/s - 2.39x slower
```
### Why is Hamlit faster?