Dhrystone Benchmark

Introduction

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

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.

Supported Combinations

Parameter

Value

CPU + OS

a53ss0-0 freertos

Toolchain

arm.gnu.aarch64-none

Boards

am62x-sk, am62x-sip-sk, am62x-sk-lp

Example folder

examples/benchmarks/dhrystone_benchmark

Steps to Run the Example

  • 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)

Sample output for Dhrystone benchmark example

\code BENCHMARK START - DHRYSTONE

Dhrystone Benchmark, Version 2.1 (Language: C)

  • BEGIN cycle count: 14

  • END Cycle count: 99582466

  • USER cycle count: 99582452

BENCHMARK Using clock 1400000000

  • Usertime in sec: 0.071130

  • Microseconds for one run through Dhrystone: 0.1

  • Dhrystones per Second: 7029351.2

Normalized MIPS/MHz: 2.8577 BENCHMARK END

All tests have passed. \endcode