AM263x MCU+ SDK  10.00.00
Dhrystone Benchmark

Dhrystone is a synthetic benchmark that measures and compares processor performance.

Read more about Dhrystone benchmark here:

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
Toolchain ti-arm-clang
Boards am263x-cc, am263x-lp
Example folder examples/benchmarks/dhrystone_benchmark

Introduction

The Dhrystone benchmark program contains 52 assignments, 33 control statements and 17 procedures/ function calls. Unlike Whetstone benchmarking, the program doesn't contain floating point operation and concentrates on string handling and standard code, heavily influenced by hardware and software design, compiler and linker options, code optimizing, cache memory, wait states and integer data types. 103 statements are dynamically executed. The output of the Dhrystone program is

Performance statistics

Device Normalised MIPS/MHz
AM263x-CC 1.9678
AM263x-LP 1.9678

Steps to Run the Example

Building Dhrystone benchmark application

  • When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
  • When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)

Running the Dhrystone benchmark application

Once you have the application binary built following the aforementioned steps, Load and run the application using CCS. (see CCS Launch, Load and Run).

If you want to flash the application binary to the device, follow the steps mentioned here (see Flash a Hello World example).

Sample output for Dhrystone benchmark example

BENCHMARK START - ARM R5F - DHRYSTONE
status 0
Dhrystone Benchmark, Version 2.1 (Language: C)
- BEGIN cycle count: 34
- END Cycle count: 144614397
- USER cycle count: 144614363
- Usertime in sec: 0.723072
- Microseconds for one run through Dhrystone: 1.4
- Dhrystones per Second: 691494.2
Normalized MIPS/MHz: 1.9678
BENCHMARK END