Created
April 28, 2012 04:40
-
-
Save norman/2516040 to your computer and use it in GitHub Desktop.
This file contains 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
user system total real | |
(1) erb 0.360000 0.000000 0.360000 ( 0.355804) | |
(1) erubis 0.300000 0.000000 0.300000 ( 0.305106) | |
(1) fast erubis 0.300000 0.000000 0.300000 ( 0.304546) | |
(1) slim 3.030000 0.010000 3.040000 ( 3.036167) | |
(1) haml 1.990000 0.010000 2.000000 ( 2.012734) | |
(1) haml ugly 1.870000 0.000000 1.870000 ( 1.873722) | |
(2) erb 0.130000 0.000000 0.130000 ( 0.126759) | |
(2) erubis 0.090000 0.000000 0.090000 ( 0.094110) | |
(2) fast erubis 0.080000 0.010000 0.090000 ( 0.081308) | |
(2) slim 0.020000 0.000000 0.020000 ( 0.028245) | |
(2) haml 0.250000 0.000000 0.250000 ( 0.250104) | |
(2) haml ugly 0.200000 0.000000 0.200000 ( 0.201001) | |
(3) erb 0.010000 0.000000 0.010000 ( 0.012789) | |
(3) erubis 0.010000 0.000000 0.010000 ( 0.009648) | |
(3) fast erubis 0.010000 0.000000 0.010000 ( 0.010067) | |
(3) slim 0.020000 0.000000 0.020000 ( 0.016230) | |
(3) haml 0.070000 0.000000 0.070000 ( 0.072300) | |
(3) haml ugly 0.070000 0.000000 0.070000 ( 0.063793) | |
(4) erb 0.030000 0.000000 0.030000 ( 0.028516) | |
(4) erubis 0.020000 0.000000 0.020000 ( 0.018630) | |
(4) slim 0.020000 0.000000 0.020000 ( 0.027543) | |
(4) haml 0.100000 0.000000 0.100000 ( 0.105753) | |
(4) haml ugly 0.100000 0.000000 0.100000 ( 0.091902) | |
1. Uncached benchmark. Template is parsed every time. | |
Activate this benchmark with 'rake bench slow=1'. | |
2. Cached benchmark. Template is parsed before the benchmark. | |
The ruby code generated by the template engine might be evaluated every time. | |
This benchmark uses the standard API of the template engine. | |
3. Compiled benchmark. Template is parsed before the benchmark and | |
generated ruby code is compiled into a method. | |
This is the fastest evaluation strategy because it benchmarks | |
pure execution speed of the generated ruby code. | |
4. Compiled Tilt benchmark. Template is compiled with Tilt, which gives a more | |
accurate result of the performance in production mode in frameworks like | |
Sinatra, Ramaze and Camping. (Rails still uses its own template | |
compilation.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment