Remove '=for openssl ifdef'
[openssl.git] / doc / man1 / openssl-speed.pod.in
1 =pod
2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
3
4 =head1 NAME
5
6 openssl-speed - test library performance
7
8 =head1 SYNOPSIS
9
10 B<openssl speed>
11 [B<-help>]
12 [B<-elapsed>]
13 [B<-evp> I<algo>]
14 [B<-hmac> I<algo>]
15 [B<-cmac> I<algo>]
16 [B<-mb>]
17 [B<-aead>]
18 [B<-multi> I<num>]
19 [B<-async_jobs> I<num>]
20 [B<-misalign> I<num>]
21 [B<-decrypt>]
22 [B<-primes> I<num>]
23 [B<-seconds> I<num>]
24 [B<-bytes> I<num>]
25 [B<-mr>]
26 {- $OpenSSL::safe::opt_r_synopsis -}
27 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -}
28 [I<algorithm> ...]
29
30 =head1 DESCRIPTION
31
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.
36
37 =head1 OPTIONS
38
39 =over 4
40
41 =item B<-help>
42
43 Print out a usage message.
44
45 =item B<-elapsed>
46
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
49 of hardware engines.
50
51 =item B<-evp> I<algo>
52
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.
57
58 =item B<-multi> I<num>
59
60 Run multiple operations in parallel.
61
62 =item B<-async_jobs> I<num>
63
64 Enable async mode and start specified number of jobs.
65
66 =item B<-misalign> I<num>
67
68 Misalign the buffers by the specified number of bytes.
69
70 =item B<-hmac> I<digest>
71
72 Time the HMAC algorithm using the specified message digest.
73
74 =item B<-cmac> I<cipher>
75
76 Time the CMAC algorithm using the specified cipher e.g.
77 C<openssl speed -cmac aes128>.
78
79 =item B<-decrypt>
80
81 Time the decryption instead of encryption. Affects only the EVP testing.
82
83 =item B<-primes> I<num>
84
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.
87
88 =item B<-seconds> I<num>
89
90 Run benchmarks for I<num> seconds.
91
92 =item B<-bytes> I<num>
93
94 Run benchmarks on I<num>-byte buffers. Affects ciphers, digests and the CSPRNG.
95
96 =item B<-mr>
97
98 Produce the summary in a mechanical, machine-readable, format.
99
100 {- $OpenSSL::safe::opt_r_item -}
101
102 {- $OpenSSL::safe::opt_engine_item -}
103
104 {- $OpenSSL::safe::opt_provider_item -}
105
106 =item I<algorithm> ...
107
108 If any I<algorithm> is given, then those algorithms are tested, otherwise a
109 pre-compiled grand selection is tested.
110
111 =back
112
113 =head1 HISTORY
114
115 The B<-engine> option was deprecated in OpenSSL 3.0.
116
117 =head1 COPYRIGHT
118
119 Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
120
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>.
125
126 =cut