aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/bm_vm_thread_queue.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bm_vm_thread_queue.rb')
-rw-r--r--benchmark/bm_vm_thread_queue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/bm_vm_thread_queue.rb b/benchmark/bm_vm_thread_queue.rb
index 37381ae62b..274ceda366 100644
--- a/benchmark/bm_vm_thread_queue.rb
+++ b/benchmark/bm_vm_thread_queue.rb
@@ -1,7 +1,7 @@
require 'thread'
n = 1_000_000
-q = Queue.new
+q = Thread::Queue.new
consumer = Thread.new{
while q.pop
# consuming