Skip to content

Instantly share code, notes, and snippets.

@norman
Created January 7, 2014 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norman/8300884 to your computer and use it in GitHub Desktop.
Save norman/8300884 to your computer and use it in GitHub Desktop.
Benchmark comparing Haml 4.0.5 to Haml 4.1.0.beta.1

Haml 4.0.5

ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.4.0]
------------------------------------------------------------------------

1000 Iterations
Rehearsal --------------------------------------------------------
compiled haml pretty   0.550000   0.000000   0.550000 (  0.551526)
compiled haml ugly     0.270000   0.000000   0.270000 (  0.270457)
cached haml pretty     1.150000   0.010000   1.160000 (  1.163120)
cached haml ugly       0.760000   0.010000   0.770000 (  0.768290)
----------------------------------------------- total: 2.750000sec

                           user     system      total        real
compiled haml pretty   0.540000   0.000000   0.540000 (  0.541064)
compiled haml ugly     0.280000   0.000000   0.280000 (  0.272685)
cached haml pretty     1.130000   0.000000   1.130000 (  1.134842)
cached haml ugly       0.790000   0.010000   0.800000 (  0.814802)

Haml 4.1.0.beta.1

ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.4.0]
------------------------------------------------------------------------

1000 Iterations
Rehearsal --------------------------------------------------------
compiled haml pretty   0.470000   0.010000   0.480000 (  0.493925)
compiled haml ugly     0.250000   0.000000   0.250000 (  0.251101)
cached haml pretty     1.020000   0.010000   1.030000 (  1.024803)
cached haml ugly       0.680000   0.000000   0.680000 (  0.689552)
----------------------------------------------- total: 2.440000sec

                           user     system      total        real
compiled haml pretty   0.450000   0.000000   0.450000 (  0.455032)
compiled haml ugly     0.240000   0.010000   0.250000 (  0.242741)
cached haml pretty     1.020000   0.000000   1.020000 (  1.018454)
cached haml ugly       0.670000   0.000000   0.670000 (  0.675459)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment