Project

General

Profile

Bug #1325 » test_fiber.patch

cfis (Charlie Savage), 03/29/2009 04:27 PM

View differences:

test/ruby/test_fiber.rb (working copy)
end
def test_many_fibers
max = 10000
max = 1000
assert_equal(max, max.times{
Fiber.new{}
})
......
end
def test_many_fibers_with_threads
max = 1000
max = 100
@cnt = 0
(1..100).map{|ti|
Thread.new{
(1-1/2)