Skip to content

Instantly share code, notes, and snippets.

@norman
Last active December 13, 2015 21:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save norman/4977796 to your computer and use it in GitHub Desktop.
bundle exec ./bench.rb
Using Haml 3.1.8 (Separated Sally)
Template: /Users/norman/work/haml-bench/standard.haml
Darwin Normans-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.0]
------------------------------------------------------------------------
1000 Iterations
Rehearsal --------------------------------------------------------
compiled haml pretty 0.770000 0.020000 0.790000 ( 0.924422)
compiled haml ugly 0.340000 0.000000 0.340000 ( 0.481814)
cached haml pretty 1.450000 0.010000 1.460000 ( 1.488726)
cached haml ugly 0.650000 0.000000 0.650000 ( 0.665090)
parsed haml pretty 6.800000 0.040000 6.840000 ( 7.035279)
parsed haml ugly 5.930000 0.040000 5.970000 ( 6.257080)
---------------------------------------------- total: 16.050000sec
user system total real
compiled haml pretty 0.710000 0.000000 0.710000 ( 0.717122)
compiled haml ugly 0.280000 0.000000 0.280000 ( 0.278894)
cached haml pretty 1.460000 0.010000 1.470000 ( 1.534110)
cached haml ugly 0.660000 0.000000 0.660000 ( 0.660362)
parsed haml pretty 6.800000 0.030000 6.830000 ( 7.092130)
parsed haml ugly 5.750000 0.020000 5.770000 ( 5.851652)
bundle exec ./bench.rb
Using Haml 4.0.0
Template: /Users/norman/work/haml-bench/standard.haml
Darwin Normans-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.0]
------------------------------------------------------------------------
1000 Iterations
Rehearsal --------------------------------------------------------
compiled haml pretty 0.790000 0.010000 0.800000 ( 0.798514)
compiled haml ugly 0.360000 0.000000 0.360000 ( 0.367150)
cached haml pretty 1.450000 0.010000 1.460000 ( 1.467624)
cached haml ugly 0.720000 0.000000 0.720000 ( 0.719496)
parsed haml pretty 6.240000 0.020000 6.260000 ( 6.315430)
parsed haml ugly 5.360000 0.020000 5.380000 ( 5.385690)
---------------------------------------------- total: 14.980000sec
user system total real
compiled haml pretty 0.790000 0.000000 0.790000 ( 0.794268)
compiled haml ugly 0.360000 0.010000 0.370000 ( 0.362109)
cached haml pretty 1.460000 0.000000 1.460000 ( 1.458330)
cached haml ugly 0.710000 0.010000 0.720000 ( 0.706983)
parsed haml pretty 6.240000 0.000000 6.240000 ( 6.252014)
parsed haml ugly 5.360000 0.010000 5.370000 ( 5.371611)
Using Haml 3.1.8 (Separated Sally)
Template: /Users/norman/work/haml-bench/standard.haml
Darwin Normans-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.6.0_37-b06-434-11M3909 [darwin-x86_64]
------------------------------------------------------------------------
1000 Iterations
Rehearsal --------------------------------------------------------
compiled haml pretty 2.700000 0.040000 2.740000 ( 1.770000)
compiled haml ugly 1.320000 0.020000 1.340000 ( 0.797000)
cached haml pretty 3.610000 0.050000 3.660000 ( 2.446000)
cached haml ugly 2.040000 0.030000 2.070000 ( 1.443000)
parsed haml pretty 21.810000 0.480000 22.290000 ( 12.964000)
parsed haml ugly 9.130000 0.190000 9.320000 ( 6.666000)
---------------------------------------------- total: 41.420000sec
user system total real
compiled haml pretty 0.420000 0.020000 0.440000 ( 0.418000)
compiled haml ugly 0.280000 0.000000 0.280000 ( 0.239000)
cached haml pretty 1.180000 0.020000 1.200000 ( 1.086000)
cached haml ugly 0.950000 0.010000 0.960000 ( 0.748000)
parsed haml pretty 6.480000 0.090000 6.570000 ( 5.810000)
parsed haml ugly 4.980000 0.060000 5.040000 ( 4.966000)
undle exec ./bench.rb
Using Haml 4.0.0
Template: /Users/norman/work/haml-bench/standard.haml
Darwin Normans-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.6.0_37-b06-434-11M3909 [darwin-x86_64]
------------------------------------------------------------------------
1000 Iterations
Rehearsal --------------------------------------------------------
compiled haml pretty 3.600000 0.050000 3.650000 ( 2.375000)
compiled haml ugly 1.900000 0.040000 1.940000 ( 1.259000)
cached haml pretty 4.100000 0.080000 4.180000 ( 2.739000)
cached haml ugly 2.510000 0.040000 2.550000 ( 1.647000)
parsed haml pretty 22.520000 0.540000 23.060000 ( 13.773000)
parsed haml ugly 9.880000 0.220000 10.100000 ( 7.097000)
---------------------------------------------- total: 45.480000sec
user system total real
compiled haml pretty 0.860000 0.010000 0.870000 ( 0.797000)
compiled haml ugly 0.540000 0.000000 0.540000 ( 0.496000)
cached haml pretty 1.370000 0.030000 1.400000 ( 1.235000)
cached haml ugly 1.540000 0.040000 1.580000 ( 1.280000)
parsed haml pretty 5.950000 0.060000 6.010000 ( 5.544000)
parsed haml ugly 5.480000 0.100000 5.580000 ( 5.031000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment