]>
git.saurik.com Git - redis.git/blob - tests/helpers/gen_write_load.tcl
1 source tests
/support
/redis.tcl
3 proc gen_write_load
{host port seconds
} {
4 set start_time
[clock seconds
]
5 set r
[redis
$host $port 1]
8 $r set [expr rand
()] [expr rand
()]
9 if {[clock seconds
]-$start_time > $seconds} {
15 gen_write_load
[lindex $argv 0] [lindex $argv 1] [lindex $argv 2]