First, Introduction
The speed command is used to test the performance of the library
Second, the grammar
OpenSSL speed [MD2] [MDC2] [MD5] [HMAC] [SHA1] [sha256] [sha512] [whirlpool] [rmd160] [idea-CBC] [SEED-CBC] [RC2-CBC] [RC5-CBC] [BF-CBC] [DES-CBC] [des-ede3] [aes- --CBC] [aes-192-CBC] [AES- the-CBC] [aes- --ige] [aes-192-ige] [aes- the-ige] [camellia- --CBC] [camellia-192-CBC] [Camellia- the-CBC] [RC4] [RSA512] [rsa1024] [rsa2048] [rsa4096] [DSA512] [dsa1024] [dsa2048] [ecdsap160] [ecdsap192] [ecdsap224] [ecdsap256] [ecdsap384] [ECDSAP512] [ecdsak163] [ecdsak233] [ecdsak283] [ecdsak409] [ecdsak571] [ecdsab163] [ecdsab233] [ecdsab283] [ecdsab409] [ecdsab571] [ECDSA] [ecdhp192] [ecdhp224] [ecdhp256] [ecdhp384] [ECDHP512] [ecdhk163] [ecdhk233] [ecdhk283] [ecdhk409] [ecdhk571] [ecdhb163] [ecdhb233] [ecdhb283] [ecdhb409] [ecdhb571] [ECDH] [Idea] [Seed] [RC2] [des] [AES] [Camellia] [RSA] [Blowfish] [-elapsed] [-engine e] [-evp e] [-decrypt] [-MR] [-multi N]
Options
Available VALUES:MD2 MD4 MD5 HMAC SHA1 sha256 sha512 Whirlpoolrmd160idea-CBC SEED-CBC RC2-CBC bf-Cbcdes-CBC Des-ede3 aes- --CBC aes-192-CBC aes- the-CBC aes- --ige aes-192-ige aes- the-IgE Camellia- --CBC camellia-192-CBC camellia- the-CBC rc4rsa512 rsa1024 rsa2048 rsa4096dsa512 dsa1024 dsa2048ecdsap256 ecdsap384ecdsaecdhp256 Ecdhp384ecdhidea Seed RC2 des AES Camellia RSA blowfishavailable options:-engine e Use engine E, possibly a hardware device.-EVP e use EVP E.-decrypt Timedecryption instead of encryption (only EVP).-Mr Produce machine readable output.-multi N Run N BenchmarksinchParallel.
Third, examples
1. Test AES
OpenSSL speed AES
2. Test SHA1 (Single thread)
OpenSSL speed SHA1
3. Test RSA (Multithreading)
OpenSSL speed Rsa–multi 5
Reference: http://blog.csdn.net/as3luyuan123/article/details/16851125
Openssl Speed Command