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
294cd536
Commit
294cd536
authored
May 31, 2011
by
Pieter Noordhuis
Browse files
There is no debug mode in benchmark tool
parent
39bf4402
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
294cd536
...
@@ -52,7 +52,6 @@ static struct config {
...
@@ -52,7 +52,6 @@ static struct config {
const
char
*
hostip
;
const
char
*
hostip
;
int
hostport
;
int
hostport
;
const
char
*
hostsocket
;
const
char
*
hostsocket
;
int
debug
;
int
numclients
;
int
numclients
;
int
requests
;
int
requests
;
int
liveclients
;
int
liveclients
;
...
@@ -370,8 +369,6 @@ int parseOptions(int argc, const char **argv) {
...
@@ -370,8 +369,6 @@ int parseOptions(int argc, const char **argv) {
config
.
quiet
=
1
;
config
.
quiet
=
1
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-l"
))
{
}
else
if
(
!
strcmp
(
argv
[
i
],
"-l"
))
{
config
.
loop
=
1
;
config
.
loop
=
1
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-D"
))
{
config
.
debug
=
1
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-I"
))
{
}
else
if
(
!
strcmp
(
argv
[
i
],
"-I"
))
{
config
.
idlemode
=
1
;
config
.
idlemode
=
1
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"--help"
))
{
}
else
if
(
!
strcmp
(
argv
[
i
],
"--help"
))
{
...
@@ -410,7 +407,6 @@ usage:
...
@@ -410,7 +407,6 @@ usage:
printf
(
" -q Quiet. Just show query/sec values
\n
"
);
printf
(
" -q Quiet. Just show query/sec values
\n
"
);
printf
(
" -l Loop. Run the tests forever
\n
"
);
printf
(
" -l Loop. Run the tests forever
\n
"
);
printf
(
" -I Idle mode. Just open N idle connections and wait.
\n
"
);
printf
(
" -I Idle mode. Just open N idle connections and wait.
\n
"
);
printf
(
" -D Debug mode. more verbose.
\n
"
);
exit
(
exit_status
);
exit
(
exit_status
);
}
}
...
@@ -436,7 +432,6 @@ int main(int argc, const char **argv) {
...
@@ -436,7 +432,6 @@ int main(int argc, const char **argv) {
signal
(
SIGHUP
,
SIG_IGN
);
signal
(
SIGHUP
,
SIG_IGN
);
signal
(
SIGPIPE
,
SIG_IGN
);
signal
(
SIGPIPE
,
SIG_IGN
);
config
.
debug
=
0
;
config
.
numclients
=
50
;
config
.
numclients
=
50
;
config
.
requests
=
10000
;
config
.
requests
=
10000
;
config
.
liveclients
=
0
;
config
.
liveclients
=
0
;
...
@@ -479,7 +474,7 @@ int main(int argc, const char **argv) {
...
@@ -479,7 +474,7 @@ int main(int argc, const char **argv) {
sds
title
=
sdsnew
(
argv
[
0
]);
sds
title
=
sdsnew
(
argv
[
0
]);
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
title
=
sdscatlen
(
title
,
" "
,
1
);
title
=
sdscatlen
(
title
,
" "
,
1
);
title
=
sdscatlen
(
title
,
(
char
*
)
argv
[
i
],
strlen
(
argv
[
1
]));
title
=
sdscatlen
(
title
,
(
char
*
)
argv
[
i
],
strlen
(
argv
[
i
]));
}
}
do
{
do
{
...
...
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