I'm putting together a set of benchmarks for running on various z80 C compilers.
The main reason for posting here is that msx users are actively using C compilers not used by anyone else so I was hoping we could get some numbers for you.
The current set of benchmarks are:
Dhrystone 2.1
Standard synthetic benchmark for integer programs.
[url=https://en.wikipedia.org/wiki/Whetstone_(benchmark)]Whetstone 1.2[/url]
Standard synthetic benchmark for floating point.
Sieve of Erastothenes
Common for small uP compilers because it's compilable by just about every c compiler. Finds prime numbers up to 8000.
Pi
Computes pi to some number of decimal places. Tests 32-bit integer math.
I'd also like to add coremark but for that one they do not allow distribution of source code. Instead you have to create an account at their website and promise not to make source available publicly.
If you can think of any other benchmarks that might be useful I'm open to that too.
I plan on compiling with sccz80 (z88dk), zsdcc (z88dk), sdcc, hitech cpm 309, hitech msdos 750, and hopefully I can get Zilog's tools to produce something. Any other submissions are welcome or if you are experienced with the hitech c compilers, a submission there would be appreciated since it's possible you may be able to get better results than me if you are more familiar with optimizations.
Souce code can be found here. More comments will be placed in those directories as I run the benchmarks. Currently the Dhrystone 2.1 and Whetstone 1.2 tests have been run for z88dk only with results in the z88dk subdirectories.
I'm using a z80 simulator called TICKS to time execution exactly in z80 cycles. If you can provide a binary with printing disabled, org indicated and binary address given, I can likely perform the time measurement with TICKS.