1
0
Fork 0
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:
Samuel Williams 2019-06-05 16:32:27 +12:00
parent a6a4e86029
commit 3fd83cb6fc
7 changed files with 20 additions and 11 deletions

View file

@ -1,6 +1,6 @@
require 'thread'
n = 1_000_000
n = 10_000_000
q = Thread::Queue.new
consumer = Thread.new{
while q.pop