Sha256: f407333422f8621da60b64c56f72d7ec1fbf7233f1b9312cbc0425712a0ff001
Contents?: true
Size: 314 Bytes
Versions: 103
Compression:
Stored size: 314 Bytes
Contents
# Run with # # $ ruby -Ilib benchmarking/speed.rb # require "benchmark" require "redis" r = Redis.new n = (ARGV.shift || 20000).to_i elapsed = Benchmark.realtime do # n sets, n gets n.times do |i| key = "foo#{i}" r[key] = key * 10 r[key] end end puts '%.2f Kops' % (2 * n / 1000 / elapsed)
Version data entries
103 entries across 101 versions & 16 rubygems
Version | Path |
---|---|
lunar-0.2.0 | vendor/redis/benchmarking/speed.rb |
lunar-0.1.1 | vendor/redis/benchmarking/speed.rb |
lunar-0.1.0 | vendor/redis/benchmarking/speed.rb |