On 20/04/2020 11:51, Manuel Pegourie-Gonnard via mbed-tls wrote:
[ Context: https://developer.trustedfirmware.org/w/mbed-tls/tech-plans-3.0/ ]
Currently the crypto library includes a module called timing.c, enabled by default in config.h (but disabled by config.py baremetal), containing various functions related to timing (not to be confused with the time abstration present in the platorm module).
In Mbed TLS 3.0, as part of our effort to clean up and minimize our API, we're considering removing (parts of) this module from the library, and moving its parts to a variety of other places, such as example programs (or a library/file shared by them, like the current query_config mechanism).
For reference, this module includes the following functions, which are used in the following places:
- mbedtls_timing_hardclock() implements cycle counting (on selected architectures, not including M-class), used only in
programs/test/benchmark.c
I used mbedtls_timing_hardclock() for my own benchmarking experiments on Linux and Windows, but couldn't get it to run on the target machine. So I've use my own ms counter instead. So, it could be easily removed as part of the library.
Question: How do you want to do the benchmarking instead? With the same code, but outside the library?
Torsten