MMBasic ANSI - MMBasic on Mac/Windows/Linux in a terminal


Author Message
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 600
Posted: 06:23am 09 Jun 2026      

I don't know where it comes from, but the execution times are rather inconsistent. I have wrapped the sieve.bas with a do/loop construct to have it run forever. If I look at the execution times of the individual sieve-runs they are very different.

Sieve(6000) in  875.956        ms
Sieve(6000) in  755.13 ms
Sieve(6000) in  1135.285       ms
Sieve(6000) in  2314.811       ms
Sieve(6000) in  1084.235       ms
Sieve(6000) in  907.463        ms
Sieve(6000) in  799.189        ms
Sieve(6000) in  724.963        ms
Sieve(6000) in  2404.137       ms
Sieve(6000) in  1571.621       ms
Sieve(6000) in  1132.949       ms
Sieve(6000) in  946.375        ms
Sieve(6000) in  813.296        ms
>


> option list
OPTION USB SERIAL
OPTION PSRAM SIZE 6
>

Is there an explanation for it?