Yeah, there was a C compiler, a Pascal compiler... I'm pretty sure others.
I would guess at least 100x for an optimized assembly version. Even 500x between this sort of interpreter and assembly is not unheard of.
And a BASIC compiler.
https://spectrumcomputing.co.uk/entry/8249/ZX-Spectrum/HiSof...
The manual:
HiSoft... that does bring back some memories.
After learning to code on it, we used BASIC as means to write the utilities to load DATA statements representing Assembly code, hexdump monitors or compiled languages, although the later were relatively hard to take advantage of, given the space requirements.
BASIC on ZX Spectrum was meant for learning, but no serious software of the era relied on it for anything that needed to run fast.
I suspect this code could be 10x faster if written in assembly or a compiled language (a handful existed for the platform).