Skip to content

Commit 55758a5

Browse files
committed
speed-regression.tcl: move tests, data size, requests in global vars that will be changed via command line options.
1 parent 85bc9b0 commit 55758a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils/speed-regression.tcl

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

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

811
proc run-tests branches {
912
set runs {}
@@ -35,7 +38,7 @@ proc run-tests branches {
3538
puts " redis INFO shows version: [lindex [split $i] 0]"
3639
$r close
3740

38-
set output [exec /tmp/redis-benchmark -n 100000 --csv -p $::port]
41+
set output [exec /tmp/redis-benchmark -n $::requests -t $::tests -d $::datasize --csv -p $::port]
3942
lappend runs $b $output
4043
puts " killing server..."
4144
catch {exec kill -9 [lindex $pids 0]}
@@ -86,6 +89,8 @@ proc main {} {
8689
slowset 2.2.0 2.4.0 unstable slowset
8790
}
8891
set results [run-tests $branches]
92+
puts "\n"
93+
puts "# Test results: datasize=$::datasize requests=$::requests"
8994
puts [combine-results $results]
9095
}
9196

0 commit comments

Comments
 (0)