mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Improve benchmarks and tests for threads.
This commit is contained in:
parent
a6a4e86029
commit
3fd83cb6fc
7 changed files with 20 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
require 'thread'
|
||||
|
||||
n = 1_000_000
|
||||
n = 10_000_000
|
||||
q = Thread::Queue.new
|
||||
consumer = Thread.new{
|
||||
while q.pop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue