mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-24 00:59:02 -05:00
12 lines
207 B
Ruby
12 lines
207 B
Ruby
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
|
|
}
|