AM62x 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.

The application runs with thread number equal to 1, 2, 5 and 10, with iteration number 30000000.

Supported Combinations

Parameter Value
CPU + OS a53ss0-0 freertos
Toolchain arm.gnu.aarch64-none
Boards am62x-sk, am62x-sk-lp, am62x-sip-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, a53 core:

[DHRYSTONE BENCHMARKING] Iterations : 30000000
[DHRYSTONE BENCHMARKING] Threads : 1
[DHRYSTONE BENCHMARKING] Dhrystones per second : 7603214.0
[DHRYSTONE BENCHMARKING] Iterations : 30000000
[DHRYSTONE BENCHMARKING] Threads : 2
[DHRYSTONE BENCHMARKING] Dhrystones per second : 7624002.5
[DHRYSTONE BENCHMARKING] Iterations : 30000000
[DHRYSTONE BENCHMARKING] Threads : 5
[DHRYSTONE BENCHMARKING] Dhrystones per second : 7653215.5
[DHRYSTONE BENCHMARKING] Iterations : 30000000
[DHRYSTONE BENCHMARKING] Threads : 10
[DHRYSTONE BENCHMARKING] Dhrystones per second : 7657410.0
All tests have passed!!