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
410dfe90
Commit
410dfe90
authored
Nov 04, 2011
by
antirez
Browse files
PING / MSET benchmarks enabled again.
parent
ca908473
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
410dfe90
...
@@ -500,7 +500,6 @@ int main(int argc, const char **argv) {
...
@@ -500,7 +500,6 @@ int main(int argc, const char **argv) {
memset
(
data
,
'x'
,
config
.
datasize
);
memset
(
data
,
'x'
,
config
.
datasize
);
data
[
config
.
datasize
]
=
'\0'
;
data
[
config
.
datasize
]
=
'\0'
;
#if 0
benchmark
(
"PING (inline)"
,
"PING
\r\n
"
,
6
);
benchmark
(
"PING (inline)"
,
"PING
\r\n
"
,
6
);
len
=
redisFormatCommand
(
&
cmd
,
"PING"
);
len
=
redisFormatCommand
(
&
cmd
,
"PING"
);
...
@@ -516,7 +515,6 @@ int main(int argc, const char **argv) {
...
@@ -516,7 +515,6 @@ int main(int argc, const char **argv) {
len
=
redisFormatCommandArgv
(
&
cmd
,
21
,
argv
,
NULL
);
len
=
redisFormatCommandArgv
(
&
cmd
,
21
,
argv
,
NULL
);
benchmark
(
"MSET (10 keys)"
,
cmd
,
len
);
benchmark
(
"MSET (10 keys)"
,
cmd
,
len
);
free
(
cmd
);
free
(
cmd
);
#endif
len
=
redisFormatCommand
(
&
cmd
,
"SET foo:rand:000000000000 %s"
,
data
);
len
=
redisFormatCommand
(
&
cmd
,
"SET foo:rand:000000000000 %s"
,
data
);
benchmark
(
"SET"
,
cmd
,
len
);
benchmark
(
"SET"
,
cmd
,
len
);
...
...
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