summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-11-07 17:18:50 +0100
committerantirez <antirez@gmail.com>2011-11-07 17:18:50 +0100
commitd5a80182870140ff338c9ad9a35d3698f3911bc1 (patch)
tree1b3b38fbccbceca7e99bd972acbedae3955f05b4 /utils
parent55758a5fab86390b37b584c3ee6b6d80bb98c320 (diff)
downloadredis-d5a80182870140ff338c9ad9a35d3698f3911bc1.tar.gz
speed-regression.tcl: command line options to select tests, data size, and number of requests.
Diffstat (limited to 'utils')
-rwxr-xr-xutils/speed-regression.tcl19
1 files changed, 19 insertions, 0 deletions
diff --git a/utils/speed-regression.tcl b/utils/speed-regression.tcl
index c3bf51c9b..86a7d8d86 100755
--- a/utils/speed-regression.tcl
+++ b/utils/speed-regression.tcl
@@ -108,4 +108,23 @@ if {!$is_not_running} {
exit 1
}
+# parse arguments
+for {set j 0} {$j < [llength $argv]} {incr j} {
+ set opt [lindex $argv $j]
+ set arg [lindex $argv [expr $j+1]]
+ if {$opt eq {--tests}} {
+ set ::tests $arg
+ incr j
+ } elseif {$opt eq {--datasize}} {
+ set ::datasize $arg
+ incr j
+ } elseif {$opt eq {--requests}} {
+ set ::requests $arg
+ incr j
+ } else {
+ puts "Wrong argument: $opt"
+ exit 1
+ }
+}
+
main