AM62Px MCU+ SDK  09.02.01
Dhrystone benchmarking demo

Introduction

This example shows an application for benchmarking the FreeRTOS SMP kernel and single core FreeRTOS kernel using dhrystone benchmarking.

The application runs the the dhrystone benchmarking demo using the given number of threads and iterations and logs the results as the number of dhrystones run per second.

Supported Combinations

Parameter Value
CPU + OS mcu-r5fss0-0 freertos
Toolchain ti-arm-clang
Boards am62px-sk
Example folder examples/kernel/freertos/dhrystone_benchmark/

Steps to Run the Example

See Also

Driver Porting Layer (DPL)

Sample Output

Shown below is a sample output when the benchmark application is run,

mcu-r5f core:

[DHRYSTONE BENCHMARKING] Iterations : 30000000
[DHRYSTONE BENCHMARKING] Threads : 1
[DHRYSTONE BENCHMARKING] Dhrystones per second : 3123048.2
[DHRYSTONE BENCHMARKING] Iterations : 30000000
[DHRYSTONE BENCHMARKING] Threads : 2
[DHRYSTONE BENCHMARKING] Dhrystones per second : 3114779.8
[DHRYSTONE BENCHMARKING] Iterations : 30000000
[DHRYSTONE BENCHMARKING] Threads : 5
[DHRYSTONE BENCHMARKING] Dhrystones per second : 3113519.0
[DHRYSTONE BENCHMARKING] Iterations : 30000000
[DHRYSTONE BENCHMARKING] Threads : 10
[DHRYSTONE BENCHMARKING] Dhrystones per second : 3114779.8
All tests have passed!!