OPENSSL-SPEED(1ossl)
π NAME π
Okay so welcome to the OPENSSL-SPEED(1ossl) page, bestie π
β this is openssl-speed, and its whole thing is test library performance β¨.
π¦ 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] [-engine id] [-provider
name] [-provider-path path] [-provparam [name:]key=value] [-propquery
propq] [algorithm ...]
π«Ά DESCRIPTION π«Ά
This command is used to test the performance of cryptographic algorithms. Thatβs the whole vibe: you point it at crypto stuff, and it tells you how fast that stuff goes π₯.
π OPTIONS π
-helpβ Print out a usage message. Your little βwhat do I even do hereβ button π«Ά.-config filenameβ Specifies the configuration file to use. Optional; for a description of the default value, see"COMMAND SUMMARY"inopenssl(1).-elapsedβ 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. Basically: real-world clock vibes instead of CPU-time vibes β°.-evp algoβ Use the specified cipher or message digest algorithm via the EVP interface. Ifalgois an AEAD cipher, then 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 the algorithms supported with this option, use "openssl list -digest-algorithms" or "openssl list -cipher-algorithms" command. Slay, now you know where to look π.
-multi numβ Run multiple operations in parallel. Multitasking main character energy β¨.-async_jobs numβ Enable async mode and start specified number of jobs.-misalign numβ Misalign the buffers by the specified number of bytes. Chaos bytes, but on purpose π.-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. Weβre going backwards today π.-mbβ Enable multi-block mode on EVP-named cipher.-aeadβ Benchmark EVP-named AEAD cipher in TLS-like sequence.-kem-algorithmsβ Benchmark KEM algorithms: key generation, encapsulation, decapsulation. KEM girlies rise π§.-signature-algorithmsβ Benchmark signature algorithms: key generation, signature, verification.-primes numβ Generate anum-prime RSA key and use it to run the benchmarks. This option is only effective if RSA algorithm is specified to test.-seconds numβ Run benchmarks fornumseconds.-bytes numβ Run benchmarks onnum-byte buffers. 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. Huge but not infinite, bestie π.-mrβ Produce the summary in a mechanical, machine-readable, format. Robot-friendly, no vibes, just data π€.-mlockβ Lock memory into RAM for more deterministic measurements. Pinned down and cozy π.-testmodeβ Runs the speed command in testmode. Runs only 1 iteration of each algorithm test regardless of any-secondsvalue. In the event that any operation fails then the speed command will return with a failure result. Tiny test, very serious about failure π¨.-rand filesβ See"Random State Options"inopenssl(1)for details.-writerand fileβ See"Random State Options"inopenssl(1)for details.-engine idβ See"Engine Options"inopenssl(1). This option is deprecated. Old-school, and not in the cute vintage way β οΈ.-provider nameβ See"Provider Options"inopenssl(1),provider(7), andproperty(7).-provider-path pathβ See"Provider Options"inopenssl(1),provider(7), andproperty(7).-provparam [name:]key=valueβ See"Provider Options"inopenssl(1),provider(7), andproperty(7).-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 is tested. Give it names or let it choose the lineup π .
π BUGS π
Real talk, bestie: the algorithm can be selected only from a pre-compiled subset of things that the "openssl speed" command knows about. To test any additional digest or cipher algorithm supported by OpenSSL use the "-evp" option.
There is no way to test the speed of any additional public key algorithms supported by third party providers with the "openssl speed" command. Thatβs just the limit, no cap π.
π HISTORY π
- The
-engineoption was deprecated in OpenSSL 3.0. - DSA512 was removed in OpenSSL 3.2.
- The
-testmodeoption was added in OpenSSL 3.4.
π 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 bye bestie, mwah π this page is from OpenSSL 3.5.6, dated 2026-04-07, and yes itβs the OPENSSL-SPEED(1ossl) manual π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms