Skip to content

Commit a7b2c2a

Browse files
committed
benchmark: Use benchmark from Mbed TLS
We previously used an older copy of benchmark.c and modified it. This made it difficult to keep up with improvements and bug fixes from Mbed TLS. For easier maintenance, use the benchmark.c application as-is (no modifications) from Mbed TLS. The version imported in this commit is from Mbed TLS v2.25.0. Update the expected log output to reflect the new benchmarking output style. The benchmark application from Mbed TLS has a dependency on MBEDTLS_TIMING_C, so add that to our application-specific Mbed TLS configuration file. This will use the alternate implementation of the Mbed TLS timing module that Mbed OS provides. As the benchmark application was designed to run on a PC, its stack usage is pretty heavy. Configure the main stack to be 32 KiB to accommodate this. Fixes #297
1 parent 789b9f5 commit a7b2c2a

File tree

5 files changed

+1182
-53
lines changed

5 files changed

+1182
-53
lines changed

benchmark/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ target_include_directories(${APP_TARGET}
2222

2323
target_sources(${APP_TARGET}
2424
PRIVATE
25-
main.cpp
25+
benchmark.c
2626
)
2727

2828
target_link_libraries(${APP_TARGET}

0 commit comments

Comments
 (0)