lib25519

In the following speed table, smaller numbers are better. The numbers are median single-core cycle counts on various microarchitectures. Overclocking is disabled.

OpenSSL 3.1.1 cycle counts are reported as a baseline for comparison. For comparability to OpenSSL's speed-testing utility, the OpenSSL cycle counts omit various OpenSSL overheads; see below for details. The lib25519 cycle counts include all overheads. Each library is assigned one color in the table.

uarch software X key X dh X batch Ed key Ed sign Ed verif Ed MSM
Zen 3 OpenSSL 119875 114972 124406 110711 370539
lib25519 26519 73086 47795 27287 30659 112326 41542
Tiger Lake OpenSSL 115612 118735 118894 110714 370523
lib25519 26494 64627 21658 27278 31373 116180 39693
Goldmont OpenSSL 248978 273332 263920 226717 740570
lib25519 88613 286276 280821 91012 100814 346731 95274
Skylake OpenSSL 134236 118455 139969 125875 410016
lib25519 28293 88082 62417 28928 32588 113410 41775
Airmont OpenSSL 310990 618831 329070 276825 853552
lib25519 143599 449168 449232 147183 162634 543339 155019
Broadwell OpenSSL 128083 121267 133816 120153 392282
lib25519 29669 117858 72444 30654 34379 122012 41516
Haswell OpenSSL 174947 165650 180558 165981 428332
lib25519 41449 115378 76555 42339 46362 160084 57325
Core 2 OpenSSL 302407 341190 311866 267854 755291
lib25519 95106 306362 306431 98459 107278 363231 105382

In the lib25519 distribution, command/lib25519-speed.c measures lib25519; speedcomparison/openssl/openssl25519speed.c measures OpenSSL; benchmarks/*-* is the output of lib25519-speed on various machines; speedcomparison/openssl/*-* is the output of openssl25519speed on various machines; and autogen/md-speed extracts the table from those outputs.

Microarchitectures in the table are listed in reverse chronological order of their introduction. The table reports only median cycle counts; see the full output files for differences between multiple measurements and the median. The table reports the following major operations:


Version: This is version 2023.06.30 of the "Speed" web page.