Bug #1325 » test_fiber.patch
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{
|