MRI-1.8.6-p399: ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux] /usr/bin/time /home/kurt/local/ruby/1.8.6-p399/bin/ruby problem/value_in_set.rb "MRI-1.8.6-p399" "measurement/value_in_set-MRI-1.8.6-p399.rb" warmup: 1....10....20....50....100....200.... GO! user system total real n = 1 : array.include?(x) 0.250000 0.000000 0.250000 ( 0.248729) n = 1 : hash.key?(x) 0.220000 0.000000 0.220000 ( 0.220029) n = 1 : set.include?(x) 0.400000 0.000000 0.400000 ( 0.404079) n = 1 : !(array&[x]).empty? 0.800000 0.010000 0.810000 ( 0.802815) n = 10 : array.include?(x) 0.660000 0.000000 0.660000 ( 0.660445) n = 10 : hash.key?(x) 0.220000 0.000000 0.220000 ( 0.221947) n = 10 : set.include?(x) 0.410000 0.000000 0.410000 ( 0.408273) n = 10 : !(array&[x]).empty? 0.930000 0.000000 0.930000 ( 0.930224) n = 20 : array.include?(x) 1.070000 0.000000 1.070000 ( 1.069682) n = 20 : hash.key?(x) 0.220000 0.000000 0.220000 ( 0.226866) n = 20 : set.include?(x) 0.420000 0.000000 0.420000 ( 0.418053) n = 20 : !(array&[x]).empty? 1.070000 0.000000 1.070000 ( 1.066215) n = 50 : array.include?(x) 2.360000 0.000000 2.360000 ( 2.362773) n = 50 : hash.key?(x) 0.230000 0.000000 0.230000 ( 0.236968) n = 50 : set.include?(x) 0.420000 0.000000 0.420000 ( 0.420056) n = 50 : !(array&[x]).empty? 1.450000 0.000000 1.450000 ( 1.441167) n = 100 : array.include?(x) 4.350000 0.000000 4.350000 ( 4.348026) n = 100 : hash.key?(x) 0.240000 0.000000 0.240000 ( 0.237525) n = 100 : set.include?(x) 0.430000 0.000000 0.430000 ( 0.433008) n = 100 : !(array&[x]).empty? 2.700000 0.000000 2.700000 ( 2.696430) n = 200 : array.include?(x) 13.960000 0.000000 13.960000 ( 13.962306) n = 200 : hash.key?(x) 0.370000 0.000000 0.370000 ( 0.378972) n = 200 : set.include?(x) 0.660000 0.010000 0.670000 ( 0.677954) n = 200 : !(array&[x]).empty? 5.180000 0.000000 5.180000 ( 5.179015) FINISHED! 69.97user 0.05system 1:10.02elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+16outputs (0major+1153minor)pagefaults 0swaps MRI-1.8.7: ruby 1.8.7 (2010-04-20 patchlevel 254) [x86_64-linux] /usr/bin/time /home/kurt/local/ruby/1.8.7-git/bin/ruby problem/value_in_set.rb "MRI-1.8.7" "measurement/value_in_set-MRI-1.8.7.rb" warmup: 1....10....20....50....100....200.... GO! user system total real n = 1 : array.include?(x) 0.570000 0.000000 0.570000 ( 0.571148) n = 1 : hash.key?(x) 0.530000 0.000000 0.530000 ( 0.529452) n = 1 : set.include?(x) 1.100000 0.000000 1.100000 ( 1.095938) n = 1 : !(array&[x]).empty? 1.920000 0.000000 1.920000 ( 1.916966) n = 10 : array.include?(x) 1.530000 0.000000 1.530000 ( 1.524264) n = 10 : hash.key?(x) 0.520000 0.000000 0.520000 ( 0.521312) n = 10 : set.include?(x) 1.110000 0.010000 1.120000 ( 1.119832) n = 10 : !(array&[x]).empty? 2.220000 0.000000 2.220000 ( 2.223178) n = 20 : array.include?(x) 2.480000 0.000000 2.480000 ( 2.470576) n = 20 : hash.key?(x) 0.530000 0.000000 0.530000 ( 0.533529) n = 20 : set.include?(x) 1.120000 0.000000 1.120000 ( 1.113178) n = 20 : !(array&[x]).empty? 2.540000 0.010000 2.550000 ( 2.555384) n = 50 : array.include?(x) 5.430000 0.000000 5.430000 ( 5.434942) n = 50 : hash.key?(x) 0.550000 0.000000 0.550000 ( 0.553719) n = 50 : set.include?(x) 1.140000 0.000000 1.140000 ( 1.132643) n = 50 : !(array&[x]).empty? 3.510000 0.000000 3.510000 ( 3.517646) n = 100 : array.include?(x) 10.080000 0.010000 10.090000 ( 10.090884) n = 100 : hash.key?(x) 0.570000 0.000000 0.570000 ( 0.566552) n = 100 : set.include?(x) 1.130000 0.000000 1.130000 ( 1.132350) n = 100 : !(array&[x]).empty? 5.120000 0.000000 5.120000 ( 5.121294) n = 200 : array.include?(x) 19.900000 0.010000 19.910000 ( 19.905740) n = 200 : hash.key?(x) 0.560000 0.000000 0.560000 ( 0.560091) n = 200 : set.include?(x) 1.160000 0.000000 1.160000 ( 1.152987) n = 200 : !(array&[x]).empty? 8.300000 0.010000 8.310000 ( 8.308038) FINISHED! 137.12user 0.07system 2:17.18elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+24outputs (0major+1159minor)pagefaults 0swaps MRI-1.9: ruby 1.9.2dev (2010-05-05 trunk 27618) [x86_64-linux] /usr/bin/time /home/kurt/local/ruby/trunk/bin/ruby problem/value_in_set.rb "MRI-1.9" "measurement/value_in_set-MRI-1.9.rb" warmup: 1....10....20....50....100....200.... GO! user system total real n = 1 : array.include?(x) 0.370000 0.000000 0.370000 ( 0.368595) n = 1 : hash.key?(x) 0.350000 0.000000 0.350000 ( 0.343631) n = 1 : set.include?(x) 0.470000 0.000000 0.470000 ( 0.476636) n = 1 : !(array&[x]).empty? 1.920000 0.000000 1.920000 ( 1.926673) n = 10 : array.include?(x) 1.320000 0.000000 1.320000 ( 1.310548) n = 10 : hash.key?(x) 0.370000 0.000000 0.370000 ( 0.369545) n = 10 : set.include?(x) 0.490000 0.000000 0.490000 ( 0.494913) n = 10 : !(array&[x]).empty? 2.610000 0.010000 2.620000 ( 2.621314) n = 20 : array.include?(x) 2.310000 0.000000 2.310000 ( 2.310761) n = 20 : hash.key?(x) 0.380000 0.000000 0.380000 ( 0.379454) n = 20 : set.include?(x) 0.510000 0.000000 0.510000 ( 0.508890) n = 20 : !(array&[x]).empty? 3.340000 0.000000 3.340000 ( 3.348035) n = 50 : array.include?(x) 5.300000 0.020000 5.320000 ( 5.317835) n = 50 : hash.key?(x) 0.390000 0.000000 0.390000 ( 0.391952) n = 50 : set.include?(x) 0.530000 0.000000 0.530000 ( 0.526543) n = 50 : !(array&[x]).empty? 5.490000 0.010000 5.500000 ( 5.499271) n = 100 : array.include?(x) 10.050000 0.010000 10.060000 ( 10.041623) n = 100 : hash.key?(x) 0.390000 0.000000 0.390000 ( 0.390402) n = 100 : set.include?(x) 0.510000 0.000000 0.510000 ( 0.512529) n = 100 : !(array&[x]).empty? 9.060000 0.020000 9.080000 ( 9.069671) n = 200 : array.include?(x) 18.130000 0.000000 18.130000 ( 18.131664) n = 200 : hash.key?(x) 0.320000 0.000000 0.320000 ( 0.317528) n = 200 : set.include?(x) 0.410000 0.000000 0.410000 ( 0.417053) n = 200 : !(array&[x]).empty? 13.280000 0.010000 13.290000 ( 13.284892) FINISHED! 161.43user 0.23system 2:41.53elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+24outputs (0major+1242minor)pagefaults 0swaps JRuby-1.4: jruby 1.4.1 (ruby 1.8.7 patchlevel 174) (2010-04-26 ea6db6a) (OpenJDK 64-Bit Server VM 1.6.0_0) [amd64-java] /usr/bin/time /home/kurt/local/ruby/jruby-1.4.1/bin/jruby --fast problem/value_in_set.rb "JRuby-1.4" "measurement/value_in_set-JRuby-1.4.rb" warmup: 1....10....20....50....100....200.... GO! user system total real n = 1 : array.include?(x) 0.205000 0.000000 0.205000 ( 0.167000) n = 1 : hash.key?(x) 0.113000 0.000000 0.113000 ( 0.113000) n = 1 : set.include?(x) 0.241000 0.000000 0.241000 ( 0.241000) n = 1 : !(array&[x]).empty? 0.610000 0.000000 0.610000 ( 0.610000) n = 10 : array.include?(x) 0.457000 0.000000 0.457000 ( 0.457000) n = 10 : hash.key?(x) 0.120000 0.000000 0.120000 ( 0.120000) n = 10 : set.include?(x) 0.216000 0.000000 0.216000 ( 0.216000) n = 10 : !(array&[x]).empty? 0.746000 0.000000 0.746000 ( 0.746000) n = 20 : array.include?(x) 0.755000 0.000000 0.755000 ( 0.755000) n = 20 : hash.key?(x) 0.124000 0.000000 0.124000 ( 0.125000) n = 20 : set.include?(x) 0.223000 0.000000 0.223000 ( 0.223000) n = 20 : !(array&[x]).empty? 0.942000 0.000000 0.942000 ( 0.942000) n = 50 : array.include?(x) 1.733000 0.000000 1.733000 ( 1.733000) n = 50 : hash.key?(x) 0.128000 0.000000 0.128000 ( 0.128000) n = 50 : set.include?(x) 0.232000 0.000000 0.232000 ( 0.232000) n = 50 : !(array&[x]).empty? 1.567000 0.000000 1.567000 ( 1.567000) n = 100 : array.include?(x) 3.309000 0.000000 3.309000 ( 3.309000) n = 100 : hash.key?(x) 0.133000 0.000000 0.133000 ( 0.133000) n = 100 : set.include?(x) 0.246000 0.000000 0.246000 ( 0.246000) n = 100 : !(array&[x]).empty? 2.567000 0.000000 2.567000 ( 2.567000) n = 200 : array.include?(x) 6.571000 0.000000 6.571000 ( 6.572000) n = 200 : hash.key?(x) 0.140000 0.000000 0.140000 ( 0.140000) n = 200 : set.include?(x) 0.245000 0.000000 0.245000 ( 0.245000) n = 200 : !(array&[x]).empty? 4.540000 0.000000 4.540000 ( 4.540000) FINISHED! 70.37user 0.52system 1:06.14elapsed 107%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+144outputs (1major+80307minor)pagefaults 0swaps Rubinius: rubinius 1.0.0-rc4 (1.8.7 9098d4d7 2010-03-31 JI) [x86_64-unknown-linux-gnu] /usr/bin/time /home/kurt/local/rubinius/master/bin/rbx problem/value_in_set.rb "Rubinius" "measurement/value_in_set-Rubinius.rb" warmup: 1....10....20....50....100....200.... GO! user system total real n = 1 : array.include?(x) 0.172782 0.000000 0.172782 ( 0.172780) n = 1 : hash.key?(x) 0.187970 0.000000 0.187970 ( 0.187983) n = 1 : set.include?(x) 0.211601 0.000000 0.211601 ( 0.211618) n = 1 : !(array&[x]).empty? 7.238880 0.000000 7.238880 ( 7.238891) n = 10 : array.include?(x) 0.326494 0.000000 0.326494 ( 0.326506) n = 10 : hash.key?(x) 0.245962 0.000000 0.245962 ( 0.245974) n = 10 : set.include?(x) 0.264806 0.000000 0.264806 ( 0.264815) n = 10 : !(array&[x]).empty? 9.345682 0.000000 9.345682 ( 9.345720) n = 20 : array.include?(x) 0.482953 0.000000 0.482953 ( 0.482966) n = 20 : hash.key?(x) 0.246254 0.000000 0.246254 ( 0.246267) n = 20 : set.include?(x) 0.272207 0.000000 0.272207 ( 0.272217) n = 20 : !(array&[x]).empty? 11.704735 0.000000 11.704735 ( 11.704751) n = 50 : array.include?(x) 0.988119 0.000000 0.988119 ( 0.988135) n = 50 : hash.key?(x) 0.220007 0.000000 0.220007 ( 0.220027) n = 50 : set.include?(x) 0.269180 0.000000 0.269180 ( 0.269193) n = 50 : !(array&[x]).empty? 20.896557 0.000000 20.896557 ( 20.896601) n = 100 : array.include?(x) 2.073711 0.000000 2.073711 ( 2.073730) n = 100 : hash.key?(x) 0.448250 0.000000 0.448250 ( 0.448262) n = 100 : set.include?(x) 0.483058 0.000000 0.483058 ( 0.483085) n = 100 : !(array&[x]).empty? 81.940604 0.000000 81.940604 ( 81.940730) n = 200 : array.include?(x) 14.560473 0.000000 14.560473 ( 14.560528) n = 200 : hash.key?(x) 0.928404 0.000000 0.928404 ( 0.928452) n = 200 : set.include?(x) 1.033933 0.000000 1.033933 ( 1.033990) n = 200 : !(array&[x]).empty? 287.049321 0.000000 287.049321 (287.049328) FINISHED! 582.70user 2.17system 9:43.10elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+176outputs (0major+415606minor)pagefaults 0swaps