]> git.saurik.com Git - redis.git/blob - client-libraries/ruby/fill.rb
ed95f3a911806960060686687ac16dde78c32505
[redis.git] / client-libraries / ruby / fill.rb
1 require 'benchmark'
2 $:.push File.join(File.dirname(__FILE__), 'lib')
3 require 'redis'
4
5 times = 20000
6
7 @r = Redis.new
8 (0..1000000).each{|x|
9 @r[x] = "Hello World"
10 puts x if (x > 0 and x % 10000) == 0
11 }