projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55758a5
)
speed-regression.tcl: command line options to select tests, data size, and number...
author
antirez
<antirez@gmail.com>
Mon, 7 Nov 2011 16:18:50 +0000
(17:18 +0100)
committer
antirez
<antirez@gmail.com>
Mon, 7 Nov 2011 16:18:50 +0000
(17:18 +0100)
utils/speed-regression.tcl
patch
|
blob
|
blame
|
history
diff --git
a/utils/speed-regression.tcl
b/utils/speed-regression.tcl
index c3bf51c9b45992f78137775197660c6ef226cdec..86a7d8d86afaba4d6dd34f93f878ead33b548199 100755
(executable)
--- 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