-
-
Save methodmissing/172499 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| macbook-pros-computer:hwia lourens$ rake bench | |
| (in /Users/lourens/projects/hwia) | |
| ruby bench/bench.rb | |
| warning: Insecure world writable dir /Users/lourens in PATH, mode 040753 | |
| Rehearsal ------------------------------------------------------------------------------ | |
| StrHash#[:sym] 0.000000 0.000000 0.000000 ( 0.002916) | |
| HashWithIndifferentAccess#[:sym] 0.020000 0.000000 0.020000 ( 0.021839) | |
| StrHash#['str'] 0.010000 0.000000 0.010000 ( 0.012953) | |
| HashWithIndifferentAccess#['str] 0.000000 0.000000 0.000000 ( 0.003804) | |
| StrHash#key?(:sym) 0.000000 0.000000 0.000000 ( 0.002904) | |
| HashWithIndifferentAccess#key?(:sym) 0.010000 0.000000 0.010000 ( 0.013327) | |
| StrHash#key?('str') 0.000000 0.000000 0.000000 ( 0.004642) | |
| HashWithIndifferentAccess#key?('str') 0.010000 0.000000 0.010000 ( 0.011467) | |
| StrHash#fetch(:sym) 0.010000 0.000000 0.010000 ( 0.003193) | |
| HashWithIndifferentAccess#fetch(:sym) 0.020000 0.000000 0.020000 ( 0.019775) | |
| StrHash#fetch('str') 0.000000 0.000000 0.000000 ( 0.004953) | |
| HashWithIndifferentAccess#fetch('str') 0.020000 0.000000 0.020000 ( 0.017320) | |
| StrHash#values_at(:sym) 0.000000 0.000000 0.000000 ( 0.005767) | |
| HashWithIndifferentAccess#values_at(:sym) 0.030000 0.000000 0.030000 ( 0.022707) | |
| StrHash#values_at('str') 0.000000 0.000000 0.000000 ( 0.007607) | |
| HashWithIndifferentAccess#values_at('str') 0.010000 0.000000 0.010000 ( 0.019828) | |
| StrHash#['str']= 0.010000 0.000000 0.010000 ( 0.005335) | |
| HashWithIndifferentAccess#['str]= 0.020000 0.000000 0.020000 ( 0.018056) | |
| StrHash#[:sym]= 0.000000 0.000000 0.000000 ( 0.003846) | |
| HashWithIndifferentAccess#[:sym]= 0.020000 0.000000 0.020000 ( 0.021264) | |
| StrHash#update 0.010000 0.000000 0.010000 ( 0.006167) | |
| HashWithIndifferentAccess#update 0.050000 0.000000 0.050000 ( 0.050991) | |
| --------------------------------------------------------------------- total: 0.250000sec | |
| user system total real | |
| StrHash#[:sym] 0.000000 0.000000 0.000000 ( 0.002873) | |
| HashWithIndifferentAccess#[:sym] 0.030000 0.000000 0.030000 ( 0.021635) | |
| StrHash#['str'] 0.000000 0.000000 0.000000 ( 0.003844) | |
| HashWithIndifferentAccess#['str] 0.000000 0.000000 0.000000 ( 0.004389) | |
| StrHash#key?(:sym) 0.010000 0.000000 0.010000 ( 0.002874) | |
| HashWithIndifferentAccess#key?(:sym) 0.010000 0.000000 0.010000 ( 0.013460) | |
| StrHash#key?('str') 0.010000 0.000000 0.010000 ( 0.004057) | |
| HashWithIndifferentAccess#key?('str') 0.010000 0.000000 0.010000 ( 0.010665) | |
| StrHash#fetch(:sym) 0.000000 0.000000 0.000000 ( 0.003808) | |
| HashWithIndifferentAccess#fetch(:sym) 0.020000 0.000000 0.020000 ( 0.020123) | |
| StrHash#fetch('str') 0.010000 0.000000 0.010000 ( 0.004343) | |
| HashWithIndifferentAccess#fetch('str') 0.010000 0.000000 0.010000 ( 0.017190) | |
| StrHash#values_at(:sym) 0.010000 0.000000 0.010000 ( 0.005606) | |
| HashWithIndifferentAccess#values_at(:sym) 0.020000 0.000000 0.020000 ( 0.022591) | |
| StrHash#values_at('str') 0.010000 0.000000 0.010000 ( 0.006916) | |
| HashWithIndifferentAccess#values_at('str') 0.020000 0.000000 0.020000 ( 0.019744) | |
| StrHash#['str']= 0.000000 0.000000 0.000000 ( 0.004653) | |
| HashWithIndifferentAccess#['str]= 0.020000 0.000000 0.020000 ( 0.018194) | |
| StrHash#[:sym]= 0.010000 0.000000 0.010000 ( 0.003765) | |
| HashWithIndifferentAccess#[:sym]= 0.020000 0.000000 0.020000 ( 0.019197) | |
| StrHash#update 0.000000 0.000000 0.000000 ( 0.006072) | |
| HashWithIndifferentAccess#update 0.050000 0.000000 0.050000 ( 0.047940) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| macbook-pros-computer:hwia lourens$ rake bench | |
| (in /Users/lourens/projects/hwia) | |
| /opt/local/ruby19/bin/ruby extconf.rb | |
| /opt/local/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1015: warning: Insecure world writable dir /Users/lourens in PATH, mode 040753 | |
| checking for rb_thread_blocking_region()... yes | |
| checking for RUBY_UBF_IO in ruby.h... yes | |
| checking for rb_trap_immediate in ruby.h,rubysig.h... no | |
| creating Makefile | |
| make | |
| gcc -I. -I/opt/local/ruby19/include/ruby-1.9.1/i386-darwin9.7.0 -I/opt/local/ruby19/include/ruby-1.9.1/ruby/backward -I/opt/local/ruby19/include/ruby-1.9.1 -I. -DHAVE_RB_THREAD_BLOCKING_REGION -DRUBY19 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wno-missing-field-initializers -Wshorten-64-to-32 -Wpointer-arith -Wwrite-strings -pipe -o hwia.o -c hwia.c | |
| hwia.c: In function ‘rb_strhash_update_block_i’: | |
| hwia.c:344: warning: implicit declaration of function ‘rb_hash_has_key’ | |
| hwia.c: At top level: | |
| hwia.c:84: warning: ‘eql’ defined but not used | |
| gcc -dynamic -bundle -undefined suppress -flat_namespace -o hwia.bundle hwia.o -L. -L/opt/local/ruby19/lib -L. -L/usr/local/lib -lpthread -ldl -lobjc | |
| ruby bench/bench.rb | |
| Rehearsal ------------------------------------------------------------------------------ | |
| StrHash#[:sym] 0.000000 0.000000 0.000000 ( 0.002394) | |
| HashWithIndifferentAccess#[:sym] 0.010000 0.000000 0.010000 ( 0.013356) | |
| StrHash#['str'] 0.010000 0.000000 0.010000 ( 0.003491) | |
| HashWithIndifferentAccess#['str] 0.000000 0.000000 0.000000 ( 0.003906) | |
| StrHash#key?(:sym) 0.000000 0.000000 0.000000 ( 0.002279) | |
| HashWithIndifferentAccess#key?(:sym) 0.010000 0.000000 0.010000 ( 0.007710) | |
| StrHash#key?('str') 0.000000 0.000000 0.000000 ( 0.004004) | |
| HashWithIndifferentAccess#key?('str') 0.010000 0.000000 0.010000 ( 0.006619) | |
| StrHash#fetch(:sym) 0.000000 0.000000 0.000000 ( 0.002720) | |
| HashWithIndifferentAccess#fetch(:sym) 0.010000 0.000000 0.010000 ( 0.009757) | |
| StrHash#fetch('str') 0.010000 0.000000 0.010000 ( 0.004075) | |
| HashWithIndifferentAccess#fetch('str') 0.010000 0.000000 0.010000 ( 0.008958) | |
| StrHash#values_at(:sym) 0.000000 0.000000 0.000000 ( 0.003662) | |
| HashWithIndifferentAccess#values_at(:sym) 0.010000 0.000000 0.010000 ( 0.011617) | |
| StrHash#values_at('str') 0.010000 0.000000 0.010000 ( 0.004740) | |
| HashWithIndifferentAccess#values_at('str') 0.010000 0.000000 0.010000 ( 0.010732) | |
| StrHash#['str']= 0.000000 0.000000 0.000000 ( 0.004992) | |
| HashWithIndifferentAccess#['str]= 0.010000 0.000000 0.010000 ( 0.010356) | |
| StrHash#[:sym]= 0.010000 0.000000 0.010000 ( 0.003372) | |
| HashWithIndifferentAccess#[:sym]= 0.010000 0.000000 0.010000 ( 0.011203) | |
| StrHash#update 0.000000 0.000000 0.000000 ( 0.004712) | |
| HashWithIndifferentAccess#update 0.030000 0.000000 0.030000 ( 0.027196) | |
| --------------------------------------------------------------------- total: 0.160000sec | |
| user system total real | |
| StrHash#[:sym] 0.000000 0.000000 0.000000 ( 0.003123) | |
| HashWithIndifferentAccess#[:sym] 0.010000 0.010000 0.020000 ( 0.015348) | |
| StrHash#['str'] 0.010000 0.000000 0.010000 ( 0.004202) | |
| HashWithIndifferentAccess#['str] 0.000000 0.000000 0.000000 ( 0.004695) | |
| StrHash#key?(:sym) 0.000000 0.000000 0.000000 ( 0.003883) | |
| HashWithIndifferentAccess#key?(:sym) 0.010000 0.000000 0.010000 ( 0.008179) | |
| StrHash#key?('str') 0.010000 0.000000 0.010000 ( 0.003660) | |
| HashWithIndifferentAccess#key?('str') 0.000000 0.000000 0.000000 ( 0.006480) | |
| StrHash#fetch(:sym) 0.010000 0.000000 0.010000 ( 0.002757) | |
| HashWithIndifferentAccess#fetch(:sym) 0.010000 0.000000 0.010000 ( 0.009431) | |
| StrHash#fetch('str') 0.000000 0.000000 0.000000 ( 0.005025) | |
| HashWithIndifferentAccess#fetch('str') 0.010000 0.000000 0.010000 ( 0.007936) | |
| StrHash#values_at(:sym) 0.000000 0.000000 0.000000 ( 0.003354) | |
| HashWithIndifferentAccess#values_at(:sym) 0.010000 0.000000 0.010000 ( 0.011555) | |
| StrHash#values_at('str') 0.010000 0.000000 0.010000 ( 0.004706) | |
| HashWithIndifferentAccess#values_at('str') 0.010000 0.000000 0.010000 ( 0.010890) | |
| StrHash#['str']= 0.000000 0.000000 0.000000 ( 0.004362) | |
| HashWithIndifferentAccess#['str]= 0.000000 0.000000 0.000000 ( 0.009785) | |
| StrHash#[:sym]= 0.000000 0.000000 0.000000 ( 0.003326) | |
| HashWithIndifferentAccess#[:sym]= 0.010000 0.000000 0.010000 ( 0.010889) | |
| StrHash#update 0.000000 0.000000 0.000000 ( 0.005329) | |
| HashWithIndifferentAccess#update 0.020000 0.000000 0.020000 ( 0.024953) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment