-
Couldn't load subscription status.
- Fork 51
Add mbed TLS benchmark example #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add the mbed TLS benchmark example that runs multiple cryptographic primitives and reports performance. Also, modified the repository's structure so that each example is in a different subdirectory.
|
@sbutcher-arm @yanesca : Note that:
|
| int main(void) { | ||
| output.baud(115200); | ||
|
|
||
| int ret = benchmark(0, NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original examples were run as a tests. I am not sure this is what we would like to have, but I am happy to add that if you think it adds value to the example.
README.md
Outdated
|
|
||
| This application downloads a file from an HTTPS server (developer.mbed.org) and looks for a specific string in that file. | ||
| This repo contains a collection of mbed TLS example applications based on mbed OS and built with mbedCLI. Each subdirectory contains a separate example meant for building as an executable. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to avoid abbreviations and write 'repository' instead of 'repo'.
Fix the benchmark code to remove the conditional preprocessor directives for platform.h. This code is not meant to be portable to anything other than mbed OS, so these are not required. Also, update documentation according to feedback.
benchmark/main.cpp
Outdated
| } while( 0 ) | ||
|
|
||
| #if defined(MBEDTLS_ERROR_C) | ||
| #define PRINT_ERROR \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still need true branch here.
|
+1 |
|
Reviewed and approved for merge. |
Add the mbed TLS benchmark example that runs multiple cryptographic
primitives and reports performance. Also, modified the repository's
structure so that each example is in a different subdirectory.