Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d5a80182
Commit
d5a80182
authored
Nov 07, 2011
by
antirez
Browse files
speed-regression.tcl: command line options to select tests, data size, and number of requests.
parent
55758a5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/speed-regression.tcl
View file @
d5a80182
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment