NAME
speed - test library performance
SYNOPSIS
openssl speed [-engine id] [md2] [mdc2] [md5] [hmac] [sha1] [rmd160] [idea-cbc] [rc2-cbc] [rc5-cbc] [bf-cbc] [des-cbc] [des-ede3] [rc4] [rsa512] [rsa1024] [rsa2048] [rsa4096] [dsa512] [dsa1024] [dsa2048] [idea] [rc2] [des] [rsa] [blowfish]
DESCRIPTION
This command is used to test the performance of cryptographic algorithms.
OPTIONS
- -engine id
-
specifying an engine (by its unique id string) will cause speed to attempt to obtain a functional reference to the specified engine, thus initialising it if needed. The engine will then be set as the default for all available algorithms.
- [zero or more test algorithms]
-
If any options are given, speed tests those algorithms, otherwise all of the above are tested.
EXAMPLE
Test the speed of SHA-1 computations with OpenSSL:
openssl speed sha1 Doing sha1 for 3s on 16 size blocks: 3920701 sha1's in 3.00s Doing sha1 for 3s on 64 size blocks: 3052352 sha1's in 2.99s Doing sha1 for 3s on 256 size blocks: 1679407 sha1's in 3.00s Doing sha1 for 3s on 1024 size blocks: 627630 sha1's in 3.00s Doing sha1 for 3s on 8192 size blocks: 92389 sha1's in 3.00s OpenSSL 1.0.0e 6 Sep 2011 built on: 2012-05-23 04:31:02.000000000 +0000 options:bn(64,32) rc4(4x,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx) compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wa,--noexecstack -fomit-frame-pointer -DTERMIO -DPURIFY -DSSL_FORBID_ENULL -Wall -fstack-protector -Wa,--noexecstack -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes sha1 20910.41k 65334.62k 143309.40k 214231.04k 252283.56k