AM263Px MCU+ SDK  10.01.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 am263px-cc, am263px-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
AM263Px-CC 1.9610
AM263Px-LP 1.9610

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: 7
- END Cycle count: 145117762
- USER cycle count: 145117755
- Usertime in sec: 0.725589
- Microseconds for one run through Dhrystone: 1.5
- Dhrystones per Second: 689095.5
Normalized MIPS/MHz: 1.9610
BENCHMARK END