1
0
mirror of https://github.com/fluencelabs/redis synced 2025-05-03 22:42:14 +00:00

12 lines
207 B
Ruby
Raw Normal View History

2009-03-22 10:30:00 +01:00
require 'benchmark'
$:.push File.join(File.dirname(__FILE__), 'lib')
require 'redis'
times = 20000
@r = Redis.new
(0..1000000).each{|x|
@r[x] = "Hello World"
puts x if (x > 0 and x % 10000) == 0
}