BEFORE
~/projects/jruby ➔ jruby bench/bench_io_foreach.rb
user system total real
IO.foreach(file) 12.372000 0.000000 12.372000 ( 12.281000)
user system total real
IO.foreach(file) 11.439000 0.000000 11.439000 ( 11.439000)
user system total real
IO.foreach(file) 11.589000 0.000000 11.589000 ( 11.589000)
user system total real
IO.foreach(file) 11.599000 0.000000 11.599000 ( 11.599000)
user system total real
IO.foreach(file) 11.549000 0.000000 11.549000 ( 11.549000)
~/projects/jruby ➔ jruby bench/bench_io_foreach_wide.rb
user system total real
IO.foreach(file) 10.930000 0.000000 10.930000 ( 10.861000)
user system total real
IO.foreach(file) 9.946000 0.000000 9.946000 ( 9.946000)
user system total real
IO.foreach(file) 9.936000 0.000000 9.936000 ( 9.936000)
user system total real
IO.foreach(file) 10.032000 0.000000 10.032000 ( 10.032000)
user system total real
IO.foreach(file) 9.853000 0.000000 9.853000 ( 9.853000)
AFTER
~/projects/jruby ➔ jruby bench/bench_io_foreach.rb
user system total real
IO.foreach(file) 13.267000 0.000000 13.267000 ( 13.198000)
user system total real
IO.foreach(file) 12.601000 0.000000 12.601000 ( 12.601000)
user system total real
IO.foreach(file) 12.700000 0.000000 12.700000 ( 12.700000)
user system total real
IO.foreach(file) 12.640000 0.000000 12.640000 ( 12.640000)
user system total real
IO.foreach(file) 12.665000 0.000000 12.665000 ( 12.665000)
~/projects/jruby ➔ jruby bench/bench_io_foreach_wide.rb
user system total real
IO.foreach(file) 7.837000 0.000000 7.837000 ( 7.770000)
user system total real
IO.foreach(file) 7.102000 0.000000 7.102000 ( 7.102000)
user system total real
IO.foreach(file) 7.083000 0.000000 7.083000 ( 7.083000)
user system total real
IO.foreach(file) 7.340000 0.000000 7.340000 ( 7.340000)
user system total real
IO.foreach(file) 7.095000 0.000000 7.095000 ( 7.095000)
MRI 1.8.6
~/projects/jruby ➔ ruby bench/bench_io_foreach.rb
user system total real
IO.foreach(file) 7.410000 1.990000 9.400000 ( 9.948192)
user system total real
IO.foreach(file) 7.370000 1.970000 9.340000 ( 9.669491)
user system total real
IO.foreach(file) 7.380000 1.990000 9.370000 ( 9.743438)
user system total real
IO.foreach(file) 7.380000 2.040000 9.420000 ( 9.746317)
user system total real
IO.foreach(file) 7.360000 2.030000 9.390000 ( 9.697968)
~/projects/jruby ➔ ruby bench/bench_io_foreach_wide.rb
user system total real
IO.foreach(file) 4.800000 6.380000 11.180000 ( 11.682076)
user system total real
IO.foreach(file) 4.780000 6.340000 11.120000 ( 11.548783)
user system total real
IO.foreach(file) 4.790000 6.450000 11.240000 ( 12.135515)
user system total real
IO.foreach(file) 4.780000 6.440000 11.220000 ( 11.643610)
user system total real
IO.foreach(file) 4.610000 6.560000 11.170000 ( 11.759692)