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

CLS A#=0:B#=0:A%=0:B%=0 VSYNC 1 F%=MAINCNT FOR I#=1 TO 500000 INC 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 INC A%,1 B%=A% DIV 500 NEXT F%=MAINCNT-F% ?"500k iterations using int" ?F%/60;" seconds" ?"Avg: ";500000/F%;"/s"

I changed A#=A#+1 to INC A#,1. A%=A%+1 to INC A%,1 and here are results

- 1st test - 500k iterations using float 3.15 seconds Avg: 2645.5026455/s 500k iterations using int 3.23333333 seconds Avg: 2577.31958763/s

- 2nd test - 500k iterations using float 3.18333333 seconds Avg: 2617.80104712/s 500k iterations using int 3.26666667 seconds Avg: 2551.02040816/s

- 3rd test - 500k iterations using float 3.16666667 seconds Avg: 2631.57894737/s 500k iterations using int 3.21666667 seconds Avg: 2590.67357513/s