OpenSSL Speed
Running the Script
docker run --rm --privileged ghcr.io/sparecores/benchmark:main openssl.sh
In production, the median run takes ~3.8 minutes. See
Run Duration for how it was measured, and
Production Setup for how production runs differ
from a plain docker run.
Workload
openssl.sh runs openssl speed once for each of the
following 11 algorithms, one algorithm at a time:
- hashes:
blake2b512,sha256,sha512,sha3-256,sha3-512,shake128, andshake256 - ciphers:
aes-256-cbc,aria-256-cbc,camellia-256-cbc, andsm4-cbc
Each run uses the following options:
-multi $(nproc): one forked process per logical CPUCPU: Central Processing UnitThe general-purpose processor of a computer, which runs the operating system and programs. A CPU has one or more physical cores, and with SMT each core runs two or more hardware threads.WikipediaGlossary, all in parallel-mr: machine-readable output-mlock: memory locking-elapsed: wall-clock timing
The script runs openssl speed under nice -n -20niceA Unix command that runs a program with a changed scheduling priority, from -20 (highest) to 19 (lowest). Raising a process's priority above the default needs the CAP_SYS_NICE capability, which root has.man pageGlossary and sets no duration, so
openssl speed measures each block size for its default duration (3 seconds in
production output). The openssl speed command also picks the block sizes
itself; production output shows 16, 64, 256, 1024, 8192, and 16384 bytes.
OpenSSL Build
The openssl binary is a custom OpenSSL 3.4.0 build in /opt/openssl,
configured with many algorithms and features disabled to shorten the build.
Only the 11 algorithms in Workload are measured. The script puts
the build first on PATH. Ubuntu's system OpenSSL stays on the image-wide
PATH; the GeekbenchGeekbenchA cross-platform CPU and GPU compute benchmark by Primate Labs. Its CPU benchmark runs workloads modeled on real applications, such as file compression, image processing, and web browsing, first on one core and then on all cores, and reports a Single-Core and a Multi-Core score. Geekbench 6 scores are calibrated so that a baseline system scores 2500.GeekbenchGlossary capture server uses it to create its certificate.
Output
For each algorithm, openssl.sh prints a delimiter line,
ALGO: <args> ----------------------------------------, then the raw
openssl speed -mr output, including openssl speed's stderrstderrThe standard error stream of a process, one of the three standard streams with stdin and stdout. Programs write logs, progress, and error messages to it, so that they stay separate from the output on stdout when the output is redirected to a file or another program.WikipediaGlossary. The +H: line
lists the block sizes in bytes, and the +F: line the matching speeds in bytes
per second.
Production parses this output into a list of algo, block_size, and speed
entries, and Spare Cores Navigator
publishes speed in bytes per second.