Skip to content

Instantly share code, notes, and snippets.

@cheald
Created November 25, 2012 04:13
Show Gist options
  • Save cheald/4142369 to your computer and use it in GitHub Desktop.
Save cheald/4142369 to your computer and use it in GitHub Desktop.
## Decorating
chris@luna /var/www/rails3-follow git:(master*) ruby-1.9.3 % rails r bench.rb
{:count=>39, :heap_used=>2169, :heap_length=>2444, :heap_increment=>0, :heap_live_num=>498236, :heap_free_num=>378418, :heap_final_num=>9986}
user system total real
Extend 0.820000 0.040000 0.860000 ( 0.868023)
{:count=>39, :heap_used=>6147, :heap_length=>7027, :heap_increment=>880, :heap_live_num=>498236, :heap_free_num=>2004679, :heap_final_num=>0}
## Extending
chris@luna /var/www/rails3-follow git:(master*) ruby-1.9.3 % rails r bench.rb
{:count=>39, :heap_used=>2169, :heap_length=>2444, :heap_increment=>0, :heap_live_num=>498514, :heap_free_num=>378128, :heap_final_num=>9986}
user system total real
Extend 0.200000 0.000000 0.200000 ( 0.199810)
{:count=>39, :heap_used=>2169, :heap_length=>2444, :heap_increment=>0, :heap_live_num=>498514, :heap_free_num=>378128, :heap_final_num=>0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment