ZX81 BASIC performance
Posted: Mon Oct 03, 2016 12:28 pm
I've recently received a ZX81 and having lots of fun with it. However I have a question about BASIC performance in comparision with a ZX Spectrum which I hope someone can shed light on.
I know the CPU is clocked at 3.25 instead of 3.5 MHz and that the CPU has to work harder to update the screen but I did a simple speed comparison and I found the ZX81 to be vastly slower even in FAST mode.
I typed this simple program:
10 for a=1 to 100
20 print a;
30 next a
The ZX Spectrum completed the above in about 1.8 seconds. The ZX81 was 36.4 seconds. Thinking this was due to the extra load the CPU has to work with to display screen content I changed to FAST mode. I expected the ZX81 to be behind but close to the Spectrum but instead I got a result of 10.7 seconds. About 6 times slower.
Surely in FAST mode the CPU wasn't under stress updating the screen? I know the RAM chips may be somewhat slower but surely not that much and the CPU is almost on par with the Spectrum? Was ZX81 BASIC not as streamlined as on the Spectrum?
I know this is not an conclusive test but could anyone shed any light on this? Thanks.
I know the CPU is clocked at 3.25 instead of 3.5 MHz and that the CPU has to work harder to update the screen but I did a simple speed comparison and I found the ZX81 to be vastly slower even in FAST mode.
I typed this simple program:
10 for a=1 to 100
20 print a;
30 next a
The ZX Spectrum completed the above in about 1.8 seconds. The ZX81 was 36.4 seconds. Thinking this was due to the extra load the CPU has to work with to display screen content I changed to FAST mode. I expected the ZX81 to be behind but close to the Spectrum but instead I got a result of 10.7 seconds. About 6 times slower.
Surely in FAST mode the CPU wasn't under stress updating the screen? I know the RAM chips may be somewhat slower but surely not that much and the CPU is almost on par with the Spectrum? Was ZX81 BASIC not as streamlined as on the Spectrum?
I know this is not an conclusive test but could anyone shed any light on this? Thanks.