Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created July 12, 2009 11:22
Show Gist options
  • Save methodmissing/145603 to your computer and use it in GitHub Desktop.
Save methodmissing/145603 to your computer and use it in GitHub Desktop.
macbook-pros-computer:~ lourens$ ruby as_bench.rb
Rehearsal ----------------------------------------------------------------------------
Hash#faster_diff 0.100000 0.000000 0.100000 ( 0.103207)
Hash#diff 0.120000 0.000000 0.120000 ( 0.118790)
Hash#faster_deep_merge 0.030000 0.000000 0.030000 ( 0.027385)
Hash#deep_merge 0.030000 0.000000 0.030000 ( 0.032819)
FasterHashWithIndifferentAccess#to_hash 0.030000 0.000000 0.030000 ( 0.027202)
HashWithIndifferentAccess#to_hash 0.030000 0.000000 0.030000 ( 0.032386)
Hash#faster_reverse_merge! 0.030000 0.000000 0.030000 ( 0.032605)
Hash#reverse_merge! 0.040000 0.000000 0.040000 ( 0.045057)
HashWithIndifferentAccess#reverse_merge! 0.360000 0.000000 0.360000 ( 0.362077)
------------------------------------------------------------------- total: 0.770000sec
user system total real
Hash#faster_diff 0.110000 0.000000 0.110000 ( 0.119254)
Hash#diff 0.130000 0.000000 0.130000 ( 0.137511)
Hash#faster_deep_merge 0.070000 0.000000 0.070000 ( 0.066942)
Hash#deep_merge 0.080000 0.000000 0.080000 ( 0.082390)
FasterHashWithIndifferentAccess#to_hash 0.020000 0.000000 0.020000 ( 0.021975)
HashWithIndifferentAccess#to_hash 0.030000 0.000000 0.030000 ( 0.034503)
Hash#faster_reverse_merge! 0.030000 0.000000 0.030000 ( 0.025488)
Hash#reverse_merge! 0.040000 0.000000 0.040000 ( 0.044840)
HashWithIndifferentAccess#reverse_merge! 0.350000 0.000000 0.350000 ( 0.352209)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment