Skip to content

Commit

Permalink
include native Proces::spawn benchmark on 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Mar 3, 2011
1 parent 5128944 commit 685e67f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/posix-spawn-benchmark
Expand Up @@ -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.