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

Revisions of mbed-os.lib

Revision Date Message Actions
25:e81084190b36 2017-04-03 Merge pull request #78 from 0xc0170/master File  Diff  Annotate
24:d5e33e3d0cf7 2017-03-17 Merge pull request #72 from ARMmbed/oob-test-mbed-os-5.4.1 File  Diff  Annotate
23:678bde983224 2017-03-09 Merge pull request #64 from andresag01/oob_test_mbed-os-5.4 File  Diff  Annotate
22:39b4209d62e4 2017-03-01 Merge pull request #50 from adbridge/master File  Diff  Annotate
21:af6aa9d02115 2017-02-15 Merge pull request #48 from 0xc0170/master File  Diff  Annotate
20:8d084c8a4f2c 2017-01-31 Merge pull request #44 from adbridge/master File  Diff  Annotate
18:b96f27cc227e 2017-01-16 Merge pull request #39 from adbridge/master File  Diff  Annotate
17:253a0e3a8e16 2017-01-04 Merge pull request #37 from adbridge/master File  Diff  Annotate
16:a69dc86b0f90 2016-12-21 Merge pull request #36 from adbridge/master File  Diff  Annotate
15:1a468fb5af51 2016-12-16 Update mbed-os.lib to point to the updated mbed-os-5.3.0 version of File  Diff  Annotate
14:e8226040cb2c 2016-12-15 Merge pull request #35 from ARMmbed/mbed-os-5.3.0 File  Diff  Annotate
13:50a4a03974c9 2016-10-28 Updating mbed-os to mbed-os-5.2.1 File  Diff  Annotate
12:2c88a3722c53 2016-10-24 Updating mbed-os to mbed-os-5.2.0 File  Diff  Annotate
11:6ccae3ebafd5 2016-10-21 Updating mbed-os to mbed-os-5.2.0-rc4 File  Diff  Annotate
10:bea13e30b83f 2016-10-05 Updating mbed-os to mbed-os-5.1.5 File  Diff  Annotate
9:52ffb524c398 2016-09-16 Updating mbed-os to mbed-os-5.1.4 File  Diff  Annotate
8:5fafaeade4f7 2016-08-20 Updating mbed-os to mbed-os-5.1.2 File  Diff  Annotate
7:1025c2f16679 2016-08-19 Updating mbed-os to mbed-os-5.1.1 File  Diff  Annotate
6:d161167b19ae 2016-08-05 Updating mbed-os to mbed-os-5.1.0 File  Diff  Annotate
4:570bb9164c50 2016-08-03 Updating mbed-os to mbed-os-5.1.0-rc5 File  Diff  Annotate
3:eb2b537d3bc5 2016-07-30 Updating mbed-os to mbed-os-5.1.0-rc4 File  Diff  Annotate
1:9e2340ff6d51 2016-07-28 Update example home repo at https://github.com/ARMmbed/mbed-os-example-tls File  Diff  Annotate
0:1f7c5025e59d 2016-07-27 Update example home repo at https://github.com/ARMmbed/mbed-os-example-tls File  Diff  Annotate