The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiler Speed Trials
#49
Hi, I've rerun your BM7 and BM8 tests against 1.2.8-s682 with -O3 and BM7 gives 1.05 segs, whilst BM8 outputs 19.05 (the best ever).

These are the code benchmarks I used:
Code:
''' BM7 Benchmark by britlion. ''' Compiles on: ZX Basic, Hisoft, Sinclair BASIC ''' Expected running time: 2.1 segs (ZX BASIC) 7 REM :INT +a,k,v,i,m() DIM a, k, v, i as UInteger 8 REM : OPEN# 9 CLS 10 POKE 23672,0: POKE 23673,0 90 POKE 23672,0 100 LET a=0: LET k=5: LET v=0 110 LET a=a+1 120 LET v=k/2*3+4-5 130 GO SUB 1000 140 DIM m(5) as UInteger 150 FOR i=1 TO 5 160 LET m(i)=a 170 NEXT i 200 IF a<1000 THEN GO TO 110: END IF 210 PRINT CAST(FIXED, PEEK(Uinteger, 23672))/50.0 999 STOP 1000 RETURN 1001 PRINT v, m(0)

Code:
REM BM8 POKE Uinteger 23672, 0 DIM i,j as ubyte j=2 FOR i=1 to 100 result=j^2 result=ln(j) result=sin(j) next i t = Peek(Uinteger, 23672) print CAST(Float, t) / 50 PRINT result : REM use result to avoid it being optimized
Can you check it? Maybe you're using a different benchmark??
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)