Talk:SmileBASIC (Petit Computer 3)/@comment-15296152-20141126001851

Would anyone with PTC3 like to do some tests for me? This first one here is a simple one. I just to gauge the power of it with a coded loop.

CLS

A#=0:B#=0:A%=0:B%=0

VSYNC 1

F%=MAINCNT

FOR I#=1 TO 500000

A#=A#+1

B#=A#/500

NEXT

F%=MAINCNT-F%

?"500k iterations using float"

?F%/60;" seconds"

?"Avg: ";500000/F%;"/s"

VSYNC 1

F%=MAINCNT

FOR I%=1 TO 500000

A%=A%+1

B%=A% DIV 500

NEXT

F%=MAINCNT-F%

?"500k iterations using int"

?F%/60;" seconds"

?"Avg: ";500000/F%;"/s"