03-13-2011, 03:40 PM
Since we're a few versions on, I thought I'd spin the BM7 and BM8 through the new versions. I've updated post 1, but here is the important table:
It seems that the code is less optimized than it used to be, with some quite significant speed loss (It's about 40% slower across the board) in 1.28 from 1.26. I still want to know how Hisoft did BM8 in 10 seconds. And Tobos seems to do it in 0.7! It seems likely they both have optimized trig and logarithmic functions. I do have an optimized SIN function I'm adding in, but it's not saving that much. Need to find a good fast ln function to add to the library, it seems. Though it is clear that hisoft is definitely moving faster on loops.
The scary thing is that Bm8 now seems a LOT slower than sinclair basic in this version?? - even with fast Sin!
More trial runs a few versions down the road!
BL
Code:
BM1 BM2 BM3 BM4 BM5 BM6 BM7 BM8
Sinclair 4.46 8.46 21.56 19.82 25.34 60.82 87.44 23.30
ZIP 1 .5 0.031 0.064 0.194 0.108 0.115 0.29 0.46 *
TOBOS 0.58 0.82 2.02 1.76 2.34 6.68 8.72 0.746
Hisoft Basic
Integer Optimized 0.026 0.042 0.67 0.08 0.088 0.334 0.50 10.76
Boriel's ZX BASIC 0.038 0.032 0.30 0.15 0.16 0.328 2.20 24.0
ZX Basic 1.26 -O3 2.12 20.78
ZX Basic 1.26-r1603 -O3 0.94 20.78 (17.14 with fSin)
ZX Basic 1.2.8-r2153 -O3 1.36 29.06 (24.18 with fSin)
It seems that the code is less optimized than it used to be, with some quite significant speed loss (It's about 40% slower across the board) in 1.28 from 1.26. I still want to know how Hisoft did BM8 in 10 seconds. And Tobos seems to do it in 0.7! It seems likely they both have optimized trig and logarithmic functions. I do have an optimized SIN function I'm adding in, but it's not saving that much. Need to find a good fast ln function to add to the library, it seems. Though it is clear that hisoft is definitely moving faster on loops.
The scary thing is that Bm8 now seems a LOT slower than sinclair basic in this version?? - even with fast Sin!
More trial runs a few versions down the road!
BL