Skip to content

Instantly share code, notes, and snippets.

@bkeepers
Created September 17, 2010 13:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkeepers/584214 to your computer and use it in GitHub Desktop.
Save bkeepers/584214 to your computer and use it in GitHub Desktop.
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)
@betamatt
Copy link

betamatt commented Dec 3, 2010

Trying to reproduce your results but I'm getting very different numbers.

mri 1.8.7 p302         0.190000   1.830000   9.500000 (  5.773562)
ree 1.8.7 2010.02      0.200000   2.040000   9.720000 (  5.962671)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment