mab@druca.UUCP (Alan Bland) (09/21/85)
[Submitted for your amusement]
Several weeks ago a general computing benchmark written in C, called
the "Dhrystone" benchmark, was posted to the net. I have finally
gotten around to downloading it to my Commodore 64. The results are
at the end of this article.
I am not including a copy of the benchmark here. Basically, it has a
distribution of assignments, control statements, and function calls
that are considered typical. The benchmark computes nothing useful,
but is syntactically and semantically correct.
Several things could be done to improve the performance, such as blanking
the screen, and turning off the 60HZ interrupt. I did not do any of these.
The code itself could have been adjusted to take advantage of how the compiler
generates code, but that would violate the purpose of the benchmark.
And now what you've been waiting for. The envelope please...
/*
* MACHINE MICROPROCESSOR OPERATING COMPILER DHRYSTONES/SEC.
* TYPE SYSTEM NO REG REGS
* -------------------------- ------------ ----------- ---------------
* COMMODORE 64 6510-1MHz C64 ROM C Power 2.8 36 N/A
* IBM PC/XT 8088-4.77Mhz VENIX/86 2.0 cc 297 324
* IBM PC/AT 80286-6Mhz PCDOS 3.0 CI-C86 2.1 666 684
* ATT 3B2/300 MAC32-?Mhz UNIX 5.0.2 cc 735 806
* IBM PC/AT 80286-6Mhz VENIX/86 2.1 cc 961 1000
* ATT PC7300 68010-10Mhz UNIX 5.2 cc 1041 1111
* Sun2/120 68010-10Mhz Sun 4.2BSD cc 1136 1219
* PDP 11/70 - UNIX 5.2 cc 1162 1250
* IBM PC/AT 80286-7.5Mhz VENIX/86 2.1 cc 1190 1315 *
* VAX 11/780 - UNIX 5.2 cc 1515 1562
* ATT 3B20 - UNIX 5.2 cc 1515 1724
*
* * 15Mhz crystal substituted for original 12Mhz;
*/
We made the top of the list, just behind the PC/XT! :-)
I didn't run the register benchmark since the C Power compiler ignores
register declarations.
If anyone in USENET-land has the Abacus C compiler, it would be interesting
to see how Dhrystone runs with it. I will gladly send a copy of the Dhrystone
source to someone with Abacus C if they don't have the original distribution.
--
Alan Bland
AT&T Information Systems, Denver CO
{ihnp4|allegra}!druca!mab