Skip to content

Commit

Permalink
dhrystone benchmark added
Browse files Browse the repository at this point in the history
  • Loading branch information
pcawte committed Jul 4, 2023
1 parent ba44b62 commit 40b3897
Show file tree
Hide file tree
Showing 5 changed files with 1,093 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ In the relevant: example, test or any other directory created at the same level.

- Updated comments in `mos_api.h` to note that `getsysvar_rtc()` data is only updated when `mos_getrtc()` is called. This is taken account of in `time()`.

04/07/2023:

- Dhrystone benchmark added under full `ansibench/dhrystone`.

### To-Do:

- Testing / validation
Expand Down
20 changes: 20 additions & 0 deletions ansibench/dhrystone/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# DEFAULT BENCHMARK CONFIGURATION
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
n = 10000000
time = TIME # use UNIX time function - okay for single-user machine
hz = 100

# ----------------------------
# Makefile Options
# ----------------------------

NAME = dhrystone
DESCRIPTION = "Ag C Toolchain Demo"
COMPRESSED = NO

CFLAGS = -Wall -Wextra -Oz -D$(time) -DDHRY_HZ=$(hz)
CXXFLAGS = -Wall -Wextra -Oz

# ----------------------------

include $(shell cedev-config --makefile)
Loading

0 comments on commit 40b3897

Please sign in to comment.