Sha256: 87fd4a9edde66986ed2fee274206897ed027618ebdffacc7517ad521b29dc9dc

Contents?: true

Size: 691 Bytes

Versions: 105

Compression:

Stored size: 691 Bytes

Contents

require 'fileutils'

def run_in_background(command)
  fork { system command }
end

def with_all_segments(&block)
  0.upto(9) do |segment_number|
    block_size = 100000
    start_index = segment_number * block_size
    end_index = start_index + block_size - 1
    block.call(start_index, end_index)
  end
end

#with_all_segments do |start_index, end_index|
#  puts "Initializing keys from #{start_index} to #{end_index}"
#  system "ruby worker.rb initialize #{start_index} #{end_index} 0"
#end

with_all_segments do |start_index, end_index|
  run_in_background "ruby worker.rb write #{start_index} #{end_index} 10"
  run_in_background "ruby worker.rb read #{start_index} #{end_index} 1"
end

Version data entries

105 entries across 103 versions & 17 rubygems

Version Path
finsync_redis-3.3.5 benchmarking/suite.rb
redis-4.0.3 benchmarking/suite.rb
redis-4.1.0.beta1 benchmarking/suite.rb
redis-4.0.2 benchmarking/suite.rb
redis-3.3.5 benchmarking/suite.rb
redis-4.0.1 benchmarking/suite.rb
redis-4.0.0 benchmarking/suite.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/redis-3.3.3/benchmarking/suite.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/benchmarking/suite.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/benchmarking/suite.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/benchmarking/suite.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/redis-3.3.3/benchmarking/suite.rb
redis-3.3.3 benchmarking/suite.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.1/benchmarking/suite.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.2/benchmarking/suite.rb
abaci-0.3.0 vendor/bundle/gems/redis-2.2.2/benchmarking/suite.rb
redis-4.0.0.rc1 benchmarking/suite.rb
redis-3.3.2 benchmarking/suite.rb
redis-3.3.1 benchmarking/suite.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/redis-3.3.0/benchmarking/suite.rb