Benchmark demonstration program for mbed TLS. The canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-tls
Mbed TLS Benchmark example on Mbed OS
This application benchmarks the various cryptographic primitives offered by Mbed TLS.
Getting started
Building with Mbed CLI
If you'd like to use Mbed CLI to build this, then you should set up your environment if you have not done so already. For instructions, refer to the main readme. The instructions on this page relate to using the developer.mbed.org Online Compiler
Import the program in to the Online Compiler, select your board from the drop down in the top right hand corner and then compile the application. Once it has built, you can drag and drop the binary onto your device.
Monitoring the application
The output in the terminal window should be similar to this:
terminal output
SHA-256 : 1673 Kb/s, 70 cycles/byte SHA-512 : 546 Kb/s, 215 cycles/byte AES-CBC-128 : 1428 Kb/s, 82 cycles/byte AES-CBC-192 : 1260 Kb/s, 93 cycles/byte AES-CBC-256 : 1127 Kb/s, 104 cycles/byte AES-GCM-128 : 486 Kb/s, 242 cycles/byte AES-GCM-192 : 464 Kb/s, 253 cycles/byte AES-GCM-256 : 445 Kb/s, 264 cycles/byte AES-CCM-128 : 610 Kb/s, 192 cycles/byte AES-CCM-192 : 547 Kb/s, 214 cycles/byte AES-CCM-256 : 496 Kb/s, 237 cycles/byte CTR_DRBG (NOPR) : 1139 Kb/s, 102 cycles/byte CTR_DRBG (PR) : 826 Kb/s, 142 cycles/byte HMAC_DRBG SHA-256 (NOPR) : 193 Kb/s, 611 cycles/byte HMAC_DRBG SHA-256 (PR) : 170 Kb/s, 695 cycles/byte 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
History
Merge pull request #264 from dgreen-arm/point-master-at-mbed-os-master
2019-11-18, by mbed_official [Mon, 18 Nov 2019 14:00:29 +0000] rev 91
Merge pull request #264 from dgreen-arm/point-master-at-mbed-os-master
Point master branch at Mbed OS master
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls
Merge pull request #262 from ARMmbed/dev/gilles-peskine-arm/benchmark-ctr_drbg-reset
2019-10-30, by mbed_official [Wed, 30 Oct 2019 15:00:21 +0000] rev 90
Merge pull request #262 from ARMmbed/dev/gilles-peskine-arm/benchmark-ctr_drbg-reset
Fix CTR_DRBG benchmark
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls
Merge pull request #211 from RonEld/unsupported_feature_error_support
2019-07-23, by mbed_official [Tue, 23 Jul 2019 12:01:17 +0100] rev 89
Merge pull request #211 from RonEld/unsupported_feature_error_support
Add support for the Feature unsupported error
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls
Merge pull request #235 from adbridge/master
2019-02-25, by mbed_official [Mon, 25 Feb 2019 16:42:04 +0000] rev 88
Merge pull request #235 from adbridge/master
All the CI tests have passed.
Updating mbed-os to mbed-os-5.11.5
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls
Merge pull request #234 from adbridge/master
2019-02-13, by mbed_official [Wed, 13 Feb 2019 18:32:01 +0000] rev 87
Merge pull request #234 from adbridge/master
All the CI tests pass.
Updating mbed-os to mbed-os-5.11.4
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls
Merge pull request #231 from cmonr/master
2019-01-17, by mbed_official [Thu, 17 Jan 2019 14:30:10 +0000] rev 86
Merge pull request #231 from cmonr/master
All the CI tests passed.
Updating mbed-os to mbed-os-5.11.2
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls
Merge pull request #225 from adbridge/master
2019-01-04, by mbed_official [Fri, 04 Jan 2019 18:00:09 +0000] rev 85
Merge pull request #225 from adbridge/master
Updating mbed-os to mbed-os-5.11.1
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls
Merge pull request #224 from ARMmbed/mbed-os-5.11.0-oob
2018-12-28, by mbed_official [Fri, 28 Dec 2018 09:00:15 +0000] rev 84
Merge pull request #224 from ARMmbed/mbed-os-5.11.0-oob
Updating mbed-os to mbed-os-5.11.0
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls
Merge pull request #213 from k-stachowiak/iotssl-2427-remove-memory-heavy-tests
2018-12-13, by mbed_official [Thu, 13 Dec 2018 12:30:07 +0000] rev 83
Merge pull request #213 from k-stachowiak/iotssl-2427-remove-memory-heavy-tests
Remove non-default, memory-heavy tests from the benchmark application
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls
Merge pull request #215 from cmonr/master
2018-11-21, by mbed_official [Wed, 21 Nov 2018 09:45:09 +0000] rev 82
Merge pull request #215 from cmonr/master
Updating mbed-os to mbed-os-5.10.4
The failing tests are tracked as known issues
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-tls