X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/55758a5fab86390b37b584c3ee6b6d80bb98c320..6255a5ae668a0aaf13d73f051face138cfbd78a4:/utils/speed-regression.tcl diff --git a/utils/speed-regression.tcl b/utils/speed-regression.tcl index c3bf51c9..86a7d8d8 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