Skip to content

Commit

Permalink
speed-regression.tcl: move tests, data size, requests in global vars …
Browse files Browse the repository at this point in the history
…that will be changed via command line options.
  • Loading branch information
antirez committed Nov 7, 2011
1 parent 85bc9b0 commit 55758a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion utils/speed-regression.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

source ../tests/support/redis.tcl
set ::port 12123
set ::tests {PING,SET,GET,INCR,LPUSH,LPOP,SADD,SPOP,LRANGE_100,LRANGE_600,MSET}
set ::datasize 16
set ::requests 100000

proc run-tests branches {
set runs {}
Expand Down Expand Up @@ -35,7 +38,7 @@ proc run-tests branches {
puts " redis INFO shows version: [lindex [split $i] 0]"
$r close

set output [exec /tmp/redis-benchmark -n 100000 --csv -p $::port]
set output [exec /tmp/redis-benchmark -n $::requests -t $::tests -d $::datasize --csv -p $::port]
lappend runs $b $output
puts " killing server..."
catch {exec kill -9 [lindex $pids 0]}
Expand Down Expand Up @@ -86,6 +89,8 @@ proc main {} {
slowset 2.2.0 2.4.0 unstable slowset
}
set results [run-tests $branches]
puts "\n"
puts "# Test results: datasize=$::datasize requests=$::requests"
puts [combine-results $results]
}

Expand Down

0 comments on commit 55758a5

Please sign in to comment.