Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save methodmissing/145595 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.103662)
Hash#diff 0.120000 0.000000 0.120000 ( 0.116199)
Hash#faster_deep_merge 0.020000 0.000000 0.020000 ( 0.027282)
Hash#deep_merge 0.030000 0.000000 0.030000 ( 0.032799)
FasterHashWithIndifferentAccess#to_hash 0.020000 0.000000 0.020000 ( 0.025512)
HashWithIndifferentAccess#to_hash 0.040000 0.000000 0.040000 ( 0.039692)
Hash#faster_reverse_merge! 0.020000 0.000000 0.020000 ( 0.026483)
Hash#reverse_merge! 0.060000 0.000000 0.060000 ( 0.053396)
HashWithIndifferentAccess#reverse_merge! 0.350000 0.000000 0.350000 ( 0.356166)
------------------------------------------------------------------- total: 0.760000sec
user system total real
Hash#faster_diff 0.120000 0.000000 0.120000 ( 0.118979)
Hash#diff 0.140000 0.000000 0.140000 ( 0.141935)
Hash#faster_deep_merge 0.060000 0.000000 0.060000 ( 0.065042)
Hash#deep_merge 0.080000 0.000000 0.080000 ( 0.083567)
FasterHashWithIndifferentAccess#to_hash 0.030000 0.000000 0.030000 ( 0.022621)
HashWithIndifferentAccess#to_hash 0.030000 0.000000 0.030000 ( 0.034161)
Hash#faster_reverse_merge! 0.020000 0.000000 0.020000 ( 0.026352)
Hash#reverse_merge! 0.050000 0.000000 0.050000 ( 0.045808)
HashWithIndifferentAccess#reverse_merge! 0.340000 0.010000 0.350000 ( 0.352524)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment