Skip to content

benchmark: remove cycle counter #79

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

gilles-peskine-arm
Copy link
Contributor

The DWT cycle counter is only available on Cortex-M3 and Cortex-M4, so
the code didn't even build for Cortex-M0 targets. Now the code only
shows throughput in KB/s.

This commit addresses #74

This PR is an alternative to #77 which retains the cycle counter where available.

The DWT cycle counter is only available on Cortex-M3 and Cortex-M4, so
the code didn't even build for Cortex-M0 targets. Now the code only
shows throughput in KB/s.

This commit addresses ARMmbed#74
@MarceloSalazar
Copy link

LGTM

@andresag01 andresag01 requested a review from mazimkhan June 1, 2017 09:10
Copy link

@mazimkhan mazimkhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update examples log file accordingly.

i * BUFSIZE / 1024, \
( mbedtls_timing_hardclock() - tsc ) / ( j * BUFSIZE ) ); \
mbedtls_printf( "%9lu KB/s\r\n", \
i * BUFSIZE / 1024 ); \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are changing prints we should also update examples log file for CI to pass https://github.com/ARMmbed/mbed-os-example-tls/blob/master/tests/benchmark.log

@andresag01
Copy link

Closing this PR as #88 is a more complete version of the changes that includes docs and Ci logs updates.

@andresag01 andresag01 closed this Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants