mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Add benchmark graph and fix description
This commit is contained in:
parent
7ef8868035
commit
442c5604fc
1 changed files with 8 additions and 1 deletions
|
@ -17,6 +17,8 @@ or just replace `gem "haml"` with `gem "hamlit"`.
|
|||
|
||||
Hamlit's rendering is **8.47x times faster** than original haml.
|
||||
|
||||

|
||||
|
||||
```
|
||||
hamlit: 133922.9 i/s
|
||||
erubis: 123464.1 i/s - 1.08x slower
|
||||
|
@ -33,7 +35,7 @@ is the same as [slim-template/slim](https://github.com/slim-template/slim)'s one
|
|||
|
||||
Haml's attribute parser is not so good. For example, raises syntax error for `%a{ b: '}' }`.
|
||||
Hamlit's attribute parser is implemented with Ripper, which is an official lexer for Ruby,
|
||||
so it can able to parse such an attribute.
|
||||
so it is able to parse such an attribute.
|
||||
|
||||
### Passing haml-spec
|
||||
|
||||
|
@ -42,6 +44,11 @@ For all test cases in haml-spec, Hamlit behaves the same as Haml (ugly mode only
|
|||
|
||||
Hamlit is used on [githubranking.com](http://githubranking.com/).
|
||||
|
||||
## Usage
|
||||
|
||||
Basically the same as [haml](https://github.com/haml/haml).
|
||||
Check out the [reference documentation](http://haml.info/docs/yardoc/file.REFERENCE.html) for details.
|
||||
|
||||
## Why high performance?
|
||||
### Less work on runtime
|
||||
Haml's rendering is very slow because generated code by haml runs many operations on runtime.
|
||||
|
|
Loading…
Add table
Reference in a new issue