OPENSSL-SPEED(1SSL)
π NAME π
okay so bestie, <pink>openssl-speed</pink> is literally the openssl speed command β it's the performance-testing girlie of the OpenSSL toolkit. You run it, it tests the performance of cryptographic algorithms. That's the whole job. She benches. She reports. She slays. π
β¨ SYNOPSIS β¨
openssl speed [-help] [-config filename] [-elapsed] [-evp algo] [-hmac
algo] [-cmac algo] [-mb] [-aead] [-kem-algorithms]
[-signature-algorithms] [-multi num] [-async_jobs num] [-misalign num]
[-decrypt] [-primes num] [-seconds num] [-bytes num] [-mr] [-mlock]
[-testmode] [-rand files] [-writerand file] [-provider name]
[-provider-path path] [-provparam [name:]key=value] [-propquery propq]
[algorithm ...]
πΈ DESCRIPTION πΈ
So basically? This command tests the performance of cryptographic algorithms. That's it, that's the whole vibe. You feed her algorithms, she runs them over and over and tells you how fast they go. Iconic behavior, no cap. π
π OPTIONS π
-helpβ prints out a usage message. Your little map when you're lost. πΊοΈ-config filenameβ tells her which config file to use. It's optional! For a description of the default value, peek at "COMMAND SUMMARY" inopenssl(1). π-elapsedβ when she's calculating operations-per-second or bytes-per-second, use wall-clock time as the divisor instead of CPU user time. Two different clocks, two different vibes, pick your girlie. β°-evp algoβ use the specified cipher or message digest algorithm through the EVP interface. And listen: ifalgois an AEAD cipher, you can pass-aeadto benchmark a TLS-like sequence. And ifalgois a multi-buffer capable cipher, e.g.aes-128-cbc-hmac-sha1, then-mbwill time multi-buffer operation. To see which algorithms this option supports, runopenssl list -digest-algorithmsoropenssl list -cipher-algorithms. β¨-multi numβ run multiple operations in parallel. Girlboss mode: activated. π₯-async_jobs numβ enable async mode and start the specified number of jobs.-misalign numβ misalign the buffers by the specified number of bytes. Chaos, but make it measurable. π-hmac digestβ time the HMAC algorithm using the specified message digest.-cmac cipherβ time the CMAC algorithm using the specified cipher, e.g.openssl speed -cmac aes128.-decryptβ time the decryption instead of encryption. Affects only the EVP testing, just so you know.-mbβ enable multi-block mode on an EVP-named cipher.-aeadβ benchmark an EVP-named AEAD cipher in TLS-like sequence.-kem-algorithmsβ benchmark KEM algorithms: key generation, encapsulation, decapsulation. The whole trilogy. π«-signature-algorithmsβ benchmark signature algorithms: key generation, signature, verification.-primes numβ generate anum-prime RSA key and use it to run the benchmarks. Heads up bestie, this option is only effective if RSA algorithm is specified to test. π«Ά-seconds numβ run benchmarks fornumseconds.-bytes numβ run benchmarks onnum-byte buffers. This affects ciphers, digests and the CSPRNG. The limit on the size of the buffer isINT_MAX - 64bytes, which for a 32-bit int would be2147483583bytes. Know your limits, queen. π-mrβ produce the summary in a mechanical, machine-readable, format. No frills, just data. π€-mlockβ lock memory into RAM for more deterministic measurements. Pinning it down so it can't wander off. π-testmodeβ runs the speed command in testmode. Runs only 1 iteration of each algorithm test regardless of any-secondsvalue. And if any operation fails, the speed command will return with a failure result. So like, a tiny little vibe check for correctness. π-rand files,-writerand fileβ see "Random State Options" inopenssl(1)for details.-provider name,-provider-path path,-provparam [name:]key=value,-propquery propqβ see "Provider Options" inopenssl(1),provider(7), andproperty(7).algorithm ...β if any algorithm is given, then those algorithms are tested. Otherwise a pre-compiled grand selection gets tested. Surprise! π
π BUGS π
ngl, there are some real ones here and we're gonna be honest about them:
- The algorithm can be selected only from a pre-compiled subset of things that the
openssl speedcommand knows about. To test any additional digest or cipher algorithm supported by OpenSSL, use the-evpoption. That's your workaround, bestie. π©Ή - There is no way to test the speed of any additional public key algorithms supported by third party providers with the
openssl speedcommand. Yeah. It's giving limitation. π
π HISTORY π
The receipts, chronologically:
- The
-engineoption was deprecated in OpenSSL 3.0. DSA512was removed in OpenSSL 3.2.- The
-testmodeoption was added in OpenSSL 3.4. - The
-engineoption was removed in OpenSSL 4.0.
βοΈ COPYRIGHT βοΈ
Copyright 2000-2024 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>.
okay that's the whole page, you ate it, go benchmark something and tell me the ops-per-second. π¦
kisses, this was the OpenSSL manual, version 4.0.3, dated 2026-09-29 β catch you on the next page bestie π
π¦ where this page comes from
- ubuntu stonking: openssl 4.0.3-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms