Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created July 12, 2009 12:33
Show Gist options
  • Select an option

  • Save methodmissing/145624 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/145624 to your computer and use it in GitHub Desktop.
macbook-pros-computer:~ lourens$ jruby as_bench.rb
Rehearsal ----------------------------------------------------------------------------
Hash#faster_diff 0.702000 0.000000 0.702000 ( 0.641000)
Hash#diff 0.225000 0.000000 0.225000 ( 0.225000)
Hash#faster_deep_merge 0.090000 0.000000 0.090000 ( 0.091000)
Hash#deep_merge 0.066000 0.000000 0.066000 ( 0.065000)
FasterHashWithIndifferentAccess#to_hash 0.337000 0.000000 0.337000 ( 0.337000)
HashWithIndifferentAccess#to_hash 0.254000 0.000000 0.254000 ( 0.254000)
Hash#faster_reverse_merge! 0.138000 0.000000 0.138000 ( 0.138000)
Hash#reverse_merge! 0.086000 0.000000 0.086000 ( 0.086000)
HashWithIndifferentAccess#reverse_merge! 0.620000 0.000000 0.620000 ( 0.620000)
------------------------------------------------------------------- total: 2.518000sec
user system total real
Hash#faster_diff 0.280000 0.000000 0.280000 ( 0.281000)
Hash#diff 0.059000 0.000000 0.059000 ( 0.059000)
Hash#faster_deep_merge 0.074000 0.000000 0.074000 ( 0.074000)
Hash#deep_merge 0.265000 0.000000 0.265000 ( 0.265000)
FasterHashWithIndifferentAccess#to_hash 0.009000 0.000000 0.009000 ( 0.009000)
HashWithIndifferentAccess#to_hash 0.012000 0.000000 0.012000 ( 0.012000)
Hash#faster_reverse_merge! 0.010000 0.000000 0.010000 ( 0.010000)
Hash#reverse_merge! 0.028000 0.000000 0.028000 ( 0.028000)
HashWithIndifferentAccess#reverse_merge! 0.130000 0.000000 0.130000 ( 0.130000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment