/forth_coremark

Forth language port of CoreMark benchmark (https://www.eembc.org/coremark)

Primary LanguageForthMIT LicenseMIT

Introduction

forth_coremark provides a port of CoreMark benchmark to Forth program language. It allows to benchmark Forth compilers vs. Forth compilers and vs. C compilers on the same machine. Furthermore, forth_coremark allows to benchmark Stack machines programmed in Forth vs. CPUs programmed in C.

I wrote forth_coremark using ANS94 to allow an easy porting and optimization on as much as possible Forth environments and Stack machines.

How to run it

S" coremark.f" INCLUDED
coremark

Benchmark results

CoreMark Iterations/Sec

GCC 5.5.0:                  21428
Gforth 0.7.3:                1260
SwiftForth i386-Linux 3.7.8: 5461
VFX Forth for Linux 4.81:    8192