Permalink
Browse files

include native Proces::spawn benchmark on 1.9

  • Loading branch information...
1 parent 5128944 commit 685e67f3ce9fd1b650cc0e2cf339765d79d6958a @tmm1 tmm1 committed Mar 3, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 bin/posix-spawn-benchmark
@@ -106,4 +106,12 @@ bm 40 do |x|
Process.wait(pid)
end
end
+ if Process.respond_to?(:spawn)
+ x.report("spawn (native):") do
+ iterations.times do
+ pid = Process.spawn('true')
+ Process.wait(pid)
+ end
+ end
+ end
end

0 comments on commit 685e67f

Please sign in to comment.