CMM2 vs. PicoMite 2 Mio For-Next-Benchmark


Author Message
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 991
Posted: 12:45pm 26 Sep 2022      

  Tinine said  

Doesn't a decrementing For-Next run even faster?


Craig


hmm no


Print "Messung von 2000000 For-Next - Statents"
Print "----------------------------------------"
t%=Timer
For f%=2000000 To 1 Step -1:Next
l= Timer-t%
Print "Pro Sekunde:     ";Int(2000000/(l/1000))
Print "Gesamtlaufzeit:  "l /1000
>

Messung von 2000000 For-Next - Statents
----------------------------------------
Pro Sekunde:      583799
Gesamtlaufzeit:   3.425835

Cheers
Mart!n