Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
7560b387
Commit
7560b387
authored
Dec 12, 2017
by
Dmitry Baryshkov
Committed by
Niels Möller
Jan 13, 2018
Browse files
Allow user to specify multiple algorithms to nettle-benchmark
Signed-off-by:
Dmitry Eremin-Solenikov
<
dbaryshkov@gmail.com
>
parent
c380faf7
Changes
1
Show whitespace changes
Inline
Side-by-side
examples/nettle-benchmark.c
View file @
7560b387
...
...
@@ -809,7 +809,7 @@ main(int argc, char **argv)
break
;
case
OPT_HELP
:
printf
(
"Usage: nettle-benchmark [-f clock frequency] [alg]
\n
"
);
printf
(
"Usage: nettle-benchmark [-f clock frequency] [alg
...
]
\n
"
);
return
EXIT_SUCCESS
;
case
'?'
:
...
...
@@ -819,8 +819,6 @@ main(int argc, char **argv)
abort
();
}
alg
=
argv
[
optind
];
time_init
();
bench_sha1_compress
();
bench_salsa20_core
();
...
...
@@ -830,6 +828,10 @@ main(int argc, char **argv)
header
();
do
{
alg
=
argv
[
optind
];
if
(
!
alg
||
strstr
(
"memxor"
,
alg
))
{
time_memxor
();
...
...
@@ -854,5 +856,8 @@ main(int argc, char **argv)
if
(
!
alg
||
strstr
(
aeads
[
i
]
->
name
,
alg
))
time_aead
(
aeads
[
i
]);
optind
++
;
}
while
(
alg
&&
argv
[
optind
]);
return
0
;
}
Write
Preview
Supports
Markdown
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