Sujet : Re: May the numbers speak
De : sean (at) *nospam* conman.org
Groupes : comp.lang.forthDate : 12. Jun 2025, 06:07:54
Autres entêtes
Organisation : Conman Laboratories
Message-ID : <102dnba$2frp7$1@dont-email.me>
References : 1 2 3
User-Agent : tin/2.4.0-20160823 ("Octomore") (UNIX) (Linux/2.6.9-100.EL.plus.c4smp (i686))
It was thus said that the Great Hans Bezemer <
the.beez.speaks@gmail.com> once stated:
It's slightly faster than the original on 4tH:
real 0m5,527s
user 0m5,522s
sys 0m0,004s
Opcodes: his: 39, yours: 37
I think I am in a unique position to get an exact cycle count of the
various attempts due to cycle emulation of the CPU my ANS Forth implemention
targets (the 6809, an 8-bit CPU). I ran the three versions LIT presented,
plus the version he said was Mr. Fifo's. I also ran dxf's version. Each
version included the following word:
: FOO S" 12:34:56" TIMESTRSCAN D. ;
and I recorded the number CPU cycles the following line took to run:
FOO BYE
The results:
dxf cycles=75453
fifo cycles=85658
LIT#1 cycles=78642
LIT#2 cycles=78714
LIT#3 cycles=78720
I also ran miniforth's version, and timed this the line:
HMS 12:34:56 .S BYE
It was not fast:
minforth cycles=834951
Make of this what you will.
-spc