2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-speed - test library performance
20 {- $OpenSSL::safe::opt_r_synopsis -}
21 {- $OpenSSL::safe::opt_engine_synopsis -}
24 =for openssl ifdef cmac multi async_jobs engine
28 This command is used to test the performance of cryptographic algorithms.
29 To see the list of supported algorithms, use C<openssl list -digest-commands>
30 or C<openssl list -cipher-commands> command. The global CSPRNG is denoted by
31 the B<rand> algorithm name.
39 Print out a usage message.
43 When calculating operations- or bytes-per-second, use wall-clock time
44 instead of CPU user time as divisor. It can be useful when testing speed
49 Use the specified cipher or message digest algorithm via the EVP interface.
50 If I<algo> is an AEAD cipher, then you can pass B<-aead> to benchmark a
51 TLS-like sequence. And if I<algo> is a multi-buffer capable cipher, e.g.
52 aes-128-cbc-hmac-sha1, then B<-mb> will time multi-buffer operation.
54 =item B<-hmac> I<digest>
56 Time the HMAC algorithm using the specified message digest.
58 =item B<-cmac> I<cipher>
60 Time the CMAC algorithm using the specified cipher e.g.
61 C<openssl speed -cmac aes128>.
65 Time the decryption instead of encryption. Affects only the EVP testing.
67 =item B<-primes> I<num>
69 Generate a I<num>-prime RSA key and use it to run the benchmarks. This option
70 is only effective if RSA algorithm is specified to test.
72 =item B<-seconds> I<num>
74 Run benchmarks for I<num> seconds.
76 =item B<-bytes> I<num>
78 Run benchmarks on I<num>-byte buffers. Affects ciphers, digests and the CSPRNG.
80 {- $OpenSSL::safe::opt_r_item -}
82 {- $OpenSSL::safe::opt_engine_item -}
84 =item I<algorithm> ...
86 If any I<algorithm> is given, then those algorithms are tested, otherwise a
87 pre-compiled grand selection is tested.
93 Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
95 Licensed under the Apache License 2.0 (the "License"). You may not use
96 this file except in compliance with the License. You can obtain a copy
97 in the file LICENSE in the source distribution or at
98 L<https://www.openssl.org/source/license.html>.