Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

There is no need for concurrency for this bug.

  • Loading branch information...
commit b3537085f6fc3530db8c9c9c3a1b3721720e9fb0 1 parent 22b3bfc
authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 test/test_cache_loops.rb
4 test/test_cache_loops.rb
@@ -31,7 +31,7 @@ def even?
31 31 end
32 32 end
33 33
34   - THREAD_COUNT = 40
  34 + THREAD_COUNT = 1
35 35 KEY_COUNT = (((2**13) - 2) * 0.75).to_i # get close to the doubling cliff
36 36 LOW_KEY_COUNT = (((2**8 ) - 2) * 0.75).to_i # get close to the doubling cliff
37 37
@@ -240,7 +240,7 @@ def run_thread_loop(meth, keys, options)
240 240 puts meth
241 241 result = (1..options[:thread_count]).map do
242 242 Thread.new do
243   - setup_sync_and_start_loop(meth, cache, keys, barier, options[:loop_count])
  243 + setup_sync_and_start_loop(meth, cache, keys, barier, options[:loop_count] * 10)
244 244 end
245 245 end.map(&:value).tap{|x| puts(([{:meth => meth, :time => "#{Time.now - t}s", :loop_count => options[:loop_count], :key_count => keys.size}] + x).inspect)}
246 246 stopper.set true

0 comments on commit b353708

Please sign in to comment.
Something went wrong with that request. Please try again.