This application benchmarks the various cryptographic primitives offered by Mbed TLS.
Set up your environment if you have not done so already. For instructions, refer to the main readme.
You can also compile this example with the Mbed Online Compiler by using this project.
The output in the terminal window should be similar to this:
SHA-256 : 1673 KB/s
SHA-512 : 546 KB/s
AES-CBC-128 : 1428 KB/s
AES-CBC-192 : 1260 KB/s
AES-CBC-256 : 1127 KB/s
AES-GCM-128 : 486 KB/s
AES-GCM-192 : 464 KB/s
AES-GCM-256 : 445 KB/s
AES-CCM-128 : 610 KB/s
AES-CCM-192 : 547 KB/s
AES-CCM-256 : 496 KB/s
CTR_DRBG (NOPR) : 1139 KB/s
CTR_DRBG (PR) : 826 KB/s
HMAC_DRBG SHA-256 (NOPR) : 193 KB/s
HMAC_DRBG SHA-256 (PR) : 170 KB/s
RSA-2048 : 28 ms/ public
RSA-2048 : 953 ms/private
RSA-4096 : 93 ms/ public
RSA-4096 : 5327 ms/private
ECDSA-secp384r1 : 451 ms/sign
ECDSA-secp256r1 : 304 ms/sign
ECDSA-secp384r1 : 863 ms/verify
ECDSA-secp256r1 : 594 ms/verify
ECDHE-secp384r1 : 829 ms/handshake
ECDHE-secp256r1 : 566 ms/handshake
ECDHE-Curve25519 : 533 ms/handshake
ECDH-secp384r1 : 407 ms/handshake
ECDH-secp256r1 : 281 ms/handshake
ECDH-Curve25519 : 268 ms/handshake
DONE