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
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)