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
71:5027f814c101 2018-07-31 Merge pull request #188 from cmonr/master File  Diff  Annotate
69:e75c8122e0d0 2018-07-16 Merge pull request #182 from cmonr/master File  Diff  Annotate
68:688c6493f363 2018-07-02 Merge pull request #180 from adbridge/master File  Diff  Annotate
67:142438804b2f 2018-06-19 Merge pull request #177 from adbridge/master File  Diff  Annotate
66:4891763da3f9 2018-06-15 Merge pull request #176 from k-stachowiak/update-mbed-os-5.9.0 File  Diff  Annotate
65:9ad772bdb886 2018-06-07 Merge pull request #175 from adbridge/master File  Diff  Annotate
64:9e7e12f60eb7 2018-05-21 Merge pull request #169 from adbridge/master File  Diff  Annotate
63:9f7e5224fc60 2018-05-10 Merge pull request #165 from ARMmbed/feature-platform-init File  Diff  Annotate
62:f1092dea2cb9 2018-05-02 Merge pull request #166 from adbridge/master File  Diff  Annotate
61:5116195451cb 2018-04-11 Merge pull request #164 from adbridge/master File  Diff  Annotate
60:733d898cbace 2018-03-28 Merge pull request #162 from adbridge/master File  Diff  Annotate
59:8e701060c7af 2018-03-16 Merge pull request #156 from cmonr/master File  Diff  Annotate
58:b953ec44ea7c 2018-02-26 Merge pull request #149 from adbridge/master File  Diff  Annotate
57:1b8c963111a9 2018-02-14 Merge pull request #147 from adbridge/master File  Diff  Annotate
56:352b3f6e6e0f 2018-01-31 Merge pull request #144 from cmonr/master File  Diff  Annotate
55:d4437d590dc4 2018-01-16 Merge pull request #143 from adbridge/master File  Diff  Annotate
54:480be731c017 2018-01-03 Merge pull request #141 from adbridge/master File  Diff  Annotate
53:18421c75207c 2018-01-02 Merge pull request #140 from adbridge/master File  Diff  Annotate
52:c9280dfce153 2018-01-02 Merge pull request #139 from ARMmbed/mbed-os-5.7.0-oob File  Diff  Annotate
51:cbc25f359df2 2017-12-04 Merge pull request #132 from adbridge/master File  Diff  Annotate
50:612680fa7ad9 2017-11-22 Merge pull request #131 from adbridge/master File  Diff  Annotate
49:4508900ff663 2017-11-21 Merge pull request #130 from adbridge/master File  Diff  Annotate
46:245555c4d5f0 2017-11-07 Merge pull request #127 from adbridge/master File  Diff  Annotate
45:0a2351a786bd 2017-10-24 Merge pull request #124 from 0xc0170/master File  Diff  Annotate
44:c3df42cbdf26 2017-10-09 Merge pull request #121 from adbridge/master File  Diff  Annotate
43:000ff55c4ee9 2017-10-02 Merge pull request #120 from adbridge/master File  Diff  Annotate
42:e7c684332848 2017-09-29 Merge pull request #119 from andresag01/master File  Diff  Annotate
41:86321a0293ee 2017-09-20 Merge pull request #117 from andresag01/change-mbed-server-address File  Diff  Annotate
40:98b2e6407e85 2017-08-30 Merge pull request #113 from adbridge/master File  Diff  Annotate
39:7e1986e0f0b3 2017-08-17 Merge pull request #112 from andresag01/fix-hw-accel-failure File  Diff  Annotate
38:a210aba68b4f 2017-08-03 Merge pull request #110 from 0xc0170/master File  Diff  Annotate
37:6d6278fe0ebe 2017-07-18 Merge pull request #108 from 0xc0170/master File  Diff  Annotate
36:4f73eddbeb26 2017-07-11 Merge pull request #99 from adbridge/master File  Diff  Annotate
35:9e506a8b4d5f 2017-06-22 Merge pull request #97 from adbridge/master File  Diff  Annotate
34:60c78c525927 2017-06-20 Merge pull request #96 from adbridge/master File  Diff  Annotate
32:8c7227bc8493 2017-06-07 Merge pull request #89 from adbridge/master File  Diff  Annotate
29:af38f69753a8 2017-05-26 Merge pull request #85 from adbridge/master File  Diff  Annotate
28:f6395b116173 2017-05-10 Merge pull request #83 from adbridge/master File  Diff  Annotate
27:8243036282fa 2017-04-27 Merge pull request #82 from 0xc0170/master File  Diff  Annotate
26:bb2bbe5019f7 2017-04-11 Merge pull request #81 from adbridge/master File  Diff  Annotate
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