Skip to content

Instantly share code, notes, and snippets.

@blackrez
Created February 25, 2020 15:39
Show Gist options
  • Save blackrez/c670301db04a37ffdb09704ef1a4b91b to your computer and use it in GitHub Desktop.
Save blackrez/c670301db04a37ffdb09704ef1a4b91b to your computer and use it in GitHub Desktop.
venv) (base) [Z22NSERV@FRL-PF1359QP analyze]$ OPENSSL_ia32cap="~0x200000200000000" openssl speed -elapsed -evp aes-128-cbc
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-128-cbc for 3s on 16 size blocks: 47770686 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 14469494 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 256 size blocks: 3555371 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 1024 size blocks: 941955 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 8192 size blocks: 116602 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 16384 size blocks: 59135 aes-128-cbc's in 3.00s
OpenSSL 1.1.1d FIPS 10 Sep 2019
built on: Thu Oct 3 00:00:00 2019 UTC
options:bn(64,64) md2(char) rc4(16x,int) des(int) aes(partial) idea(int) blowfish(ptr)
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wa,--noexecstack -Wa,--generate-missing-build-notes=yes -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DZLIB -DNDEBUG -DPURIFY -DDEVRANDOM="\"/dev/urandom\"" -DSYSTEM_CIPHERS_FILE="/etc/crypto-policies/back-ends/openssl.config"
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-128-cbc 254776.99k 308682.54k 303391.66k 321520.64k 318401.19k 322955.95k
(venv) (base) [Z22NSERV@FRL-PF1359QP analyze]$ openssl speed -elapsed -evp aes-128-cbc
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-128-cbc for 3s on 16 size blocks: 120064940 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 55197038 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 256 size blocks: 15091418 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 1024 size blocks: 3859968 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 8192 size blocks: 481597 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 16384 size blocks: 236083 aes-128-cbc's in 3.00s
OpenSSL 1.1.1d FIPS 10 Sep 2019
built on: Thu Oct 3 00:00:00 2019 UTC
options:bn(64,64) md2(char) rc4(16x,int) des(int) aes(partial) idea(int) blowfish(ptr)
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wa,--noexecstack -Wa,--generate-missing-build-notes=yes -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DZLIB -DNDEBUG -DPURIFY -DDEVRANDOM="\"/dev/urandom\"" -DSYSTEM_CIPHERS_FILE="/etc/crypto-policies/back-ends/openssl.config"
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-128-cbc 640346.35k 1177536.81k 1287801.00k 1317535.74k 1315080.87k 1289327.96k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment