2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-speed - test library performance
19 [B<-async_jobs> I<num>]
26 {- $OpenSSL::safe::opt_r_synopsis -}
27 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -}
32 This command is used to test the performance of cryptographic algorithms.
33 To see the list of supported algorithms, use C<openssl list -digest-commands>
34 or C<openssl list -cipher-commands> command. The global CSPRNG is denoted by
35 the B<rand> algorithm name.
43 Print out a usage message.
47 When calculating operations- or bytes-per-second, use wall-clock time
48 instead of CPU user time as divisor. It can be useful when testing speed
53 Use the specified cipher or message digest algorithm via the EVP interface.
54 If I<algo> is an AEAD cipher, then you can pass B<-aead> to benchmark a
55 TLS-like sequence. And if I<algo> is a multi-buffer capable cipher, e.g.
56 aes-128-cbc-hmac-sha1, then B<-mb> will time multi-buffer operation.
58 =item B<-multi> I<num>
60 Run multiple operations in parallel.
62 =item B<-async_jobs> I<num>
64 Enable async mode and start specified number of jobs.
66 =item B<-misalign> I<num>
68 Misalign the buffers by the specified number of bytes.
70 =item B<-hmac> I<digest>
72 Time the HMAC algorithm using the specified message digest.
74 =item B<-cmac> I<cipher>
76 Time the CMAC algorithm using the specified cipher e.g.
77 C<openssl speed -cmac aes128>.
81 Time the decryption instead of encryption. Affects only the EVP testing.
83 =item B<-primes> I<num>
85 Generate a I<num>-prime RSA key and use it to run the benchmarks. This option
86 is only effective if RSA algorithm is specified to test.
88 =item B<-seconds> I<num>
90 Run benchmarks for I<num> seconds.
92 =item B<-bytes> I<num>
94 Run benchmarks on I<num>-byte buffers. Affects ciphers, digests and the CSPRNG.
98 Produce the summary in a mechanical, machine-readable, format.
100 {- $OpenSSL::safe::opt_r_item -}
102 {- $OpenSSL::safe::opt_engine_item -}
104 {- $OpenSSL::safe::opt_provider_item -}
106 =item I<algorithm> ...
108 If any I<algorithm> is given, then those algorithms are tested, otherwise a
109 pre-compiled grand selection is tested.
115 The B<-engine> option was deprecated in OpenSSL 3.0.
119 Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
121 Licensed under the Apache License 2.0 (the "License"). You may not use
122 this file except in compliance with the License. You can obtain a copy
123 in the file LICENSE in the source distribution or at
124 L<https://www.openssl.org/source/license.html>.