Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiler Speed Trials
#34
britlion Wrote:Just ran the BM 7 and BM8 tests on the latest test build with -O3.

BM 8 is still sitting the same (and -O3 made no change), but BM7. Wow.

1.10 seconds unoptimized, and 0.94 seconds with -O3 added to the mix.

Boriel, the changes to the array handling stuff have made an enormous difference; and the loop code improvement can't have hurt any. Way to go!

This is what I like to see in a tool that can use the PC's memory space to pull in optimizations and options that could NEVER have fit onto the spectrum itself.

While technically still not quite the fastest array handling of the compilers, still maintaining the far more versatile array options AND halving the time taken is a pretty impressive feat.
And will be hardly more optimized: ZX BASIC allows n-dimensional arrays, Hisoft BASIC does not. This little overhead you see is because of the n-dimensional check. The N-dimensions are pushed into the stack. HiSoft use just registers. So up to 2 dimensions that could be done, but no more. ZX BASIC has an generic array-addressing routine to save memory. Son 1, 2, ..., N array accesses are done through this routine.

BTW: your BM7 has been added to the compiler into the benchmark directory. This directory is only included in the .zip version.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 10 Guest(s)