Benchmark
Posted: Wed Jun 09, 2021 1:13 pm
Hello,
I wont to know the time that benchmark needs to run 200 benchmark on a 1 mhz 6502. So I can compare it with the time need with a 6502 emulator running fig-forth on a esp32.
Cheers,
Jan
I wont to know the time that benchmark needs to run 200 benchmark on a 1 mhz 6502. So I can compare it with the time need with a 6502 emulator running fig-forth on a esp32.
Cheers,
Jan
Code: Select all
: ggd ( a b -- ggd )
begin
dup
while
swap over mod
repeat
drop
;
: benchmark ( n -- )
dup
0 do
dup 0 do
j i ggd drop
loop
loop
drop
;