Skip to content

Commit d5a8018

Browse files
committed
speed-regression.tcl: command line options to select tests, data size, and number of requests.
1 parent 55758a5 commit d5a8018

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

utils/speed-regression.tcl

+19
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,23 @@ if {!$is_not_running} {
108108
exit 1
109109
}
110110

111+
# parse arguments
112+
for {set j 0} {$j < [llength $argv]} {incr j} {
113+
set opt [lindex $argv $j]
114+
set arg [lindex $argv [expr $j+1]]
115+
if {$opt eq {--tests}} {
116+
set ::tests $arg
117+
incr j
118+
} elseif {$opt eq {--datasize}} {
119+
set ::datasize $arg
120+
incr j
121+
} elseif {$opt eq {--requests}} {
122+
set ::requests $arg
123+
incr j
124+
} else {
125+
puts "Wrong argument: $opt"
126+
exit 1
127+
}
128+
}
129+
111130
main

0 commit comments

Comments
 (0)