Permalink
Browse files

There is no need for concurrency for this bug.

  • Loading branch information...
1 parent 22b3bfc commit b3537085f6fc3530db8c9c9c3a1b3721720e9fb0 @thedarkone committed Oct 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_cache_loops.rb
View
@@ -31,7 +31,7 @@ def even?
end
end
- THREAD_COUNT = 40
+ THREAD_COUNT = 1
KEY_COUNT = (((2**13) - 2) * 0.75).to_i # get close to the doubling cliff
LOW_KEY_COUNT = (((2**8 ) - 2) * 0.75).to_i # get close to the doubling cliff
@@ -240,7 +240,7 @@ def run_thread_loop(meth, keys, options)
puts meth
result = (1..options[:thread_count]).map do
Thread.new do
- setup_sync_and_start_loop(meth, cache, keys, barier, options[:loop_count])
+ setup_sync_and_start_loop(meth, cache, keys, barier, options[:loop_count] * 10)
end
end.map(&:value).tap{|x| puts(([{:meth => meth, :time => "#{Time.now - t}s", :loop_count => options[:loop_count], :key_count => keys.size}] + x).inspect)}
stopper.set true

0 comments on commit b353708

Please sign in to comment.