Posted: 09:37am 23 Sep 2022 |
|
|
|
Messung von 2000000 For-Next - Statents ---------------------------------------- Pro Sekunde: 268592 Gesamtlaufzeit: 7.446217 > option list OPTION KEYBOARD GR OPTION CPUSPEED (KHz) 378000 OPTION SDCARD GP10, GP12, GP11, GP13 OPTION AUDIO GP6,GP7, ON PWM CHANNEL 3
with OPTION CPUSPEED 378000 ~ half as fast as cmm2
Print "Messung von 2000000 For-Next - Statents" Print "----------------------------------------" t%=Timer For f%=1 To 2000000 Next f% l= Timer-t% Print "Pro Sekunde: ";Int(2000000/(l/1000)) Print "Gesamtlaufzeit: "l /1000
a littlie faster, if I put the Next statement in the same Line as the For Statement :
Messung von 2000000 For-Next - Statents ---------------------------------------- Pro Sekunde: 275513 Gesamtlaufzeit: 7.259177
but .. if I delete the Variable behind the NEXT Statement
Messung von 2000000 For-Next - Statents ---------------------------------------- Pro Sekunde: 589522 Gesamtlaufzeit: 3.392575
 Print "Messung von 2000000 For-Next - Statents" Print "----------------------------------------" t%=Timer For f%=1 To 2000000:Next l= Timer-t% Print "Pro Sekunde: ";Int(2000000/(l/1000)) Print "Gesamtlaufzeit: "l /1000
the question remains, how meaningful such test results are Cheers Mart!n Edited 2022-09-23 19:59 by Martin H. |