openssl-speed - test library performance
openssl speed [-help] [-elapsed] [-evp algo] [-hmac algo] [-cmac algo] [-mb] [-aead] [-multi num] [-async_jobs num] [-misalign num] [-decrypt] [-primes num] [-seconds num] [-bytes num] [-mr] [-rand files] [-writerand file] [-engine id] [algorithm ...]
This command is used to test the performance of cryptographic algorithms.
To see the list of supported algorithms, use openssl list -digest-commands
or openssl list -cipher-commands
command. The global CSPRNG is denoted by
the rand algorithm name.
Print out a usage message.
When calculating operations- or bytes-per-second, use wall-clock time instead of CPU user time as divisor. It can be useful when testing speed of hardware engines.
Use the specified cipher or message digest algorithm via the EVP interface. If algo is an AEAD cipher, then you can pass -aead to benchmark a TLS-like sequence. And if algo is a multi-buffer capable cipher, e.g. aes-128-cbc-hmac-sha1, then -mb will time multi-buffer operation.
Run multiple operations in parallel.
Enable async mode and start specified number of jobs.
Misalign the buffers by the specified number of bytes.
Time the HMAC algorithm using the specified message digest.
Time the CMAC algorithm using the specified cipher e.g.
openssl speed -cmac aes128
.
Time the decryption instead of encryption. Affects only the EVP testing.
Generate a num-prime RSA key and use it to run the benchmarks. This option is only effective if RSA algorithm is specified to test.
Run benchmarks for num seconds.
Run benchmarks on num-byte buffers. Affects ciphers, digests and the CSPRNG.
Produce the summary in a mechanical, machine-readable, format.
See openssl(1)/Random State Options for details.
See openssl(1)/Engine Options.
If any algorithm is given, then those algorithms are tested, otherwise a pre-compiled grand selection is tested.
Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.