8-Queens Benchmark
|
07-10-2016, 01:15 AM
(This post was last modified: 07-10-2016 05:10 PM by Paul Berger (Canada).)
Post: #18
|
|||
|
|||
RE: 8-Queens Benchmark
Here is the HPL program that I used, you should be able to key this in directly on a 9825, the syntax for the series 200 HPL is identical but has a couple extensions. This is no surprise as it seems the 200 series HPL was designed to help customers move from a 9825 to a series 200 system. I hope the arrows come out correctly the first line should be 8 right arrow R. The case is important so type it in exactly as shown. The right arrow would seem to be on the numeric keypad of the 9825. I didn't use an array as the manual says the "r" variables, which are like a 1 dimensional array, are faster. It does not appear that HPL has any concept of integers only real numbers. The optimizations applied reduce the run time to 7.42 seconds.
Code:
While I had the 9816 out I tried the program in version 5.1 of Workstation BASIC using integers if completes in 4.27 seconds and real variables took 6 Seconds. At one time I was told that HPL was faster than BASIC on these systems, however that does not appear to be the case. I also ran the same BASIC program on my 9920U with 12.5MHz 68010 Integer 2.32 Secs. Real 3.19 Secs. and on my 320 with 16.67MHz 68020 Integer 1.56 secs. Real 1.73. It may seem surprising that the times using real variables are slower for the 9920U and the 320 since they both have hardware floating point, however the stumbling block is likely the array indices, as it is noted in the manual that if they are real numbers they must be converted to integers before the array variable may be accessed. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)