1SPEED(1) OpenSSL SPEED(1)
2
3
4
6 openssl-speed, speed - test library performance
7
9 openssl speed [-help] [-engine id] [-elapsed] [-evp algo] [-decrypt]
10 [-rand file...] [-writerand file] [-primes num] [-seconds num] [-bytes
11 num] [algorithm...]
12
14 This command is used to test the performance of cryptographic
15 algorithms. To see the list of supported algorithms, use the list
16 --digest-commands or list --cipher-commands command. The global CSPRNG
17 is denoted by the rand algorithm name.
18
20 -help
21 Print out a usage message.
22
23 -engine id
24 Specifying an engine (by its unique id string) will cause speed to
25 attempt to obtain a functional reference to the specified engine,
26 thus initialising it if needed. The engine will then be set as the
27 default for all available algorithms.
28
29 -elapsed
30 When calculating operations- or bytes-per-second, use wall-clock
31 time instead of CPU user time as divisor. It can be useful when
32 testing speed of hardware engines.
33
34 -evp algo
35 Use the specified cipher or message digest algorithm via the EVP
36 interface. If algo is an AEAD cipher, then you can pass <-aead> to
37 benchmark a TLS-like sequence. And if algo is a multi-buffer
38 capable cipher, e.g. aes-128-cbc-hmac-sha1, then -mb will time
39 multi-buffer operation.
40
41 -decrypt
42 Time the decryption instead of encryption. Affects only the EVP
43 testing.
44
45 -rand file...
46 A file or files containing random data used to seed the random
47 number generator. Multiple files can be specified separated by an
48 OS-dependent character. The separator is ; for MS-Windows, , for
49 OpenVMS, and : for all others.
50
51 [-writerand file]
52 Writes random data to the specified file upon exit. This can be
53 used with a subsequent -rand flag.
54
55 -primes num
56 Generate a num-prime RSA key and use it to run the benchmarks. This
57 option is only effective if RSA algorithm is specified to test.
58
59 -seconds num
60 Run benchmarks for num seconds.
61
62 -bytes num
63 Run benchmarks on num-byte buffers. Affects ciphers, digests and
64 the CSPRNG.
65
66 [zero or more test algorithms]
67 If any options are given, speed tests those algorithms, otherwise a
68 pre-compiled grand selection is tested.
69
71 Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
72
73 Licensed under the OpenSSL license (the "License"). You may not use
74 this file except in compliance with the License. You can obtain a copy
75 in the file LICENSE in the source distribution or at
76 <https://www.openssl.org/source/license.html>.
77
78
79
801.1.1c 2019-05-28 SPEED(1)