2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-speed - test library performance
12 [B<-config> I<filename>]
20 [B<-signature-algorithms>]
22 [B<-async_jobs> I<num>]
30 {- $OpenSSL::safe::opt_r_synopsis -}
31 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -}
36 This command is used to test the performance of cryptographic algorithms.
44 Print out a usage message.
46 =item B<-config> I<filename>
48 Specifies the configuration file to use.
49 Optional; for a description of the default value,
50 see L<openssl(1)/COMMAND SUMMARY>.
54 When calculating operations- or bytes-per-second, use wall-clock time
55 instead of CPU user time as divisor. It can be useful when testing speed
60 Use the specified cipher or message digest algorithm via the EVP interface.
61 If I<algo> is an AEAD cipher, then you can pass B<-aead> to benchmark a
62 TLS-like sequence. And if I<algo> is a multi-buffer capable cipher, e.g.
63 aes-128-cbc-hmac-sha1, then B<-mb> will time multi-buffer operation.
65 To see the algorithms supported with this option, use
66 C<openssl list -digest-algorithms> or C<openssl list -cipher-algorithms>
69 =item B<-multi> I<num>
71 Run multiple operations in parallel.
73 =item B<-async_jobs> I<num>
75 Enable async mode and start specified number of jobs.
77 =item B<-misalign> I<num>
79 Misalign the buffers by the specified number of bytes.
81 =item B<-hmac> I<digest>
83 Time the HMAC algorithm using the specified message digest.
85 =item B<-cmac> I<cipher>
87 Time the CMAC algorithm using the specified cipher e.g.
88 C<openssl speed -cmac aes128>.
92 Time the decryption instead of encryption. Affects only the EVP testing.
96 Enable multi-block mode on EVP-named cipher.
100 Benchmark EVP-named AEAD cipher in TLS-like sequence.
102 =item B<-kem-algorithms>
104 Benchmark KEM algorithms: key generation, encapsulation, decapsulation.
106 =item B<-signature-algorithms>
108 Benchmark signature algorithms: key generation, signature, verification.
110 =item B<-primes> I<num>
112 Generate a I<num>-prime RSA key and use it to run the benchmarks. This option
113 is only effective if RSA algorithm is specified to test.
115 =item B<-seconds> I<num>
117 Run benchmarks for I<num> seconds.
119 =item B<-bytes> I<num>
121 Run benchmarks on I<num>-byte buffers. Affects ciphers, digests and the CSPRNG.
122 The limit on the size of the buffer is INT_MAX - 64 bytes, which for a 32-bit
123 int would be 2147483583 bytes.
127 Produce the summary in a mechanical, machine-readable, format.
131 Lock memory into RAM for more deterministic measurements.
133 {- $OpenSSL::safe::opt_r_item -}
135 {- $OpenSSL::safe::opt_engine_item -}
137 {- $OpenSSL::safe::opt_provider_item -}
139 =item I<algorithm> ...
141 If any I<algorithm> is given, then those algorithms are tested, otherwise a
142 pre-compiled grand selection is tested.
148 The I<algorithm> can be selected only from a pre-compiled subset of things
149 that the C<openssl speed> command knows about. To test any additional digest
150 or cipher algorithm supported by OpenSSL use the C<-evp> option.
152 There is no way to test the speed of any additional public key algorithms
153 supported by third party providers with the C<openssl speed> command.
157 The B<-engine> option was deprecated in OpenSSL 3.0.
159 DSA512 was removed in OpenSSL 3.2.
163 Copyright 2000-2023 The OpenSSL Project Authors. All Rights Reserved.
165 Licensed under the Apache License 2.0 (the "License"). You may not use
166 this file except in compliance with the License. You can obtain a copy
167 in the file LICENSE in the source distribution or at
168 L<https://www.openssl.org/source/license.html>.