Created
December 19, 2012 03:13
-
-
Save kawaz/4334079 to your computer and use it in GitHub Desktop.
http://dev.classmethod.jp/server-side/language/node-bench-js-template-engine/ で行われてたベンチマークをコンパイルとレンダリングに分けてみた。
ベンチに使った修正版のコードはこれ> https://github.com/kawaz/bench-node-template-engines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Please be patient. | |
| { http_parser: '1.0', | |
| node: '0.8.14', | |
| v8: '3.11.10.25', | |
| ares: '1.7.5-DEV', | |
| uv: '0.8', | |
| zlib: '1.2.3', | |
| openssl: '1.0.0f' } | |
| Scores: (bigger is better) | |
| ejs | |
| Raw: | |
| > 15.270935960591133 | |
| > 15.453639082751744 | |
| > 15.188633023027927 | |
| > 15.511391177896268 | |
| > 15.225933202357563 | |
| Average (mean) 15.330106489324928 | |
| jade | |
| Raw: | |
| > 4.2412818096135725 | |
| > 4.326923076923077 | |
| > 4.265402843601896 | |
| > 4.429133858267717 | |
| > 4.373177842565598 | |
| Average (mean) 4.327183886194372 | |
| haml | |
| Raw: | |
| > 3.036876355748373 | |
| > 3.058103975535168 | |
| > 3.0661410424879545 | |
| > 3.0395136778115504 | |
| > 3.067484662576687 | |
| Average (mean) 3.0536239428319467 | |
| eco | |
| Raw: | |
| > 1.1534025374855825 | |
| > 1.1918951132300357 | |
| > 1.1542901115813775 | |
| > 1.1677695601401323 | |
| > 1.1691348402182384 | |
| Average (mean) 1.1672984325310733 | |
| coffeekup | |
| Raw: | |
| > 0.9601536245799328 | |
| > 1.0548523206751055 | |
| > 1.048584411045089 | |
| > 1.0611956137247966 | |
| > 1.0619469026548674 | |
| Average (mean) 1.0373465745359582 | |
| Winner: ejs | |
| Compared with next highest (jade), it's: | |
| 71.77% faster | |
| 3.54 times as fast | |
| 0.55 order(s) of magnitude faster | |
| Compared with the slowest (coffeekup), it's: | |
| 93.23% faster | |
| 14.78 times as fast | |
| 1.17 order(s) of magnitude faster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Please be patient. | |
| { http_parser: '1.0', | |
| node: '0.8.14', | |
| v8: '3.11.10.25', | |
| ares: '1.7.5-DEV', | |
| uv: '0.8', | |
| zlib: '1.2.3', | |
| openssl: '1.0.0f' } | |
| Scores: (bigger is better) | |
| haml | |
| Raw: | |
| > 191.0224438902743 | |
| > 192.11576846307386 | |
| > 191.30869130869132 | |
| > 191.2131802296555 | |
| > 184.40779610194903 | |
| Average (mean) 190.0135759987288 | |
| eco | |
| Raw: | |
| > 147.2790813779331 | |
| > 148.20359281437126 | |
| > 148.75621890547265 | |
| > 149.20159680638722 | |
| > 149.20159680638722 | |
| Average (mean) 148.5284173421103 | |
| ejs | |
| Raw: | |
| > 87.64940239043824 | |
| > 88.73379860418744 | |
| > 88.86669995007489 | |
| > 88.7780548628429 | |
| > 88.64541832669323 | |
| Average (mean) 88.53467482684735 | |
| coffeekup | |
| Raw: | |
| > 43.45654345654346 | |
| > 43.4997528423134 | |
| > 43.82470119521912 | |
| > 43.846537120079724 | |
| > 41.895261845386536 | |
| Average (mean) 43.30455929190844 | |
| jade | |
| Raw: | |
| > 21.11984282907662 | |
| > 19.99000499750125 | |
| > 19.83143282102132 | |
| > 19.77261492832427 | |
| > 19.98001998001998 | |
| Average (mean) 20.138783111188687 | |
| Winner: haml | |
| Compared with next highest (eco), it's: | |
| 21.83% faster | |
| 1.28 times as fast | |
| 0.11 order(s) of magnitude faster | |
| Compared with the slowest (jade), it's: | |
| 89.4% faster | |
| 9.44 times as fast | |
| 0.97 order(s) of magnitude faster |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
テンプレートやデータがシンプルだから余計そうなんだけど、コンパイルがやっぱ結構重い処理ね。