Created
September 17, 2010 13:15
-
-
Save bkeepers/584214 to your computer and use it in GitHub Desktop.
This file contains 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
GC.copy_on_write_friendly = true if GC.respond_to?(:copy_on_write_friendly=) | |
Benchmark.bm(10) do |x| | |
x.report do | |
100.times do | |
100.times { fork {} } | |
Process.waitall | |
end | |
end | |
end | |
user system total real | |
mri 1.8.7 0.310000 3.000000 912.550000 (504.604891) | |
ree 1.8.7 0.270000 2.320000 162.860000 ( 96.041574) | |
1.9.2 0.680000 3.860000 140.940000 ( 89.886603) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to reproduce your results but I'm getting very different numbers.