home .. forth .. misc mail list archive ..

No Subject


Jeff and MISC readers,

I was just attempting to give folks some idea of what they could expect from
P21 with an apples/apples comparison.  I *did* point out that P21Forth
was not as tweaked as UR/Forth.  I in no way meant the benchmark to be
a criticism of P21, P21Forth, or Jeff.  P21 coming in at the equivalent to
a 386DX27 or so impressed the hell out of me.

>CORDIC coordinate tranformation:
>MuP21 running P21Forth in DRAM with CORDIC in CODE and video on:       20 uS
>MuP21 in SRAM with CORDIC in CODE w/o video on: (est)                   6 uS
>486 50 running FPC with Colon def of CORDIC:                          500 uS

Apples/oranges.  CODE vs. COLON.

>Towers of Hanoi:
>MuP21 running P21Forth in DRAM with Colon def and video on:            .6 Sec
>486 50 running eForth 2.42 (same as P21Forth) with Colon def:          12 Sec

Apples/oranges again.  eForth 31 words in CODE vs. P21Forth 200 words in CODE.

>3D coordinate transformation with rotation and clipping of a CUBE:
>MuP21 running P21Forth 1.02 in DRAM with Colon def and video on:  20 frames/S
>      My version of Dave Lowry's 3D demo.
>486 50 running FPC with Colon def (Mark Smiley's graphics demo):   4 frames/S

Lowry/Smiley :-)  Don't know what Mark's code does or how it's written.

>Multitasking tests:
>MuP21 running P21Forth background tasks incrementing counter:         120k /S
>MuP21 w/ high speed sram and no video (estimated):                    400k /S
>486 50 running eForth 2.42 (same as P21Forth) tasks in background:    40k /S
>486 50 running FPC with 1 background task incrementing counter:       60k /S

Apples/apples pretty much.  Fair comparison.

>Loop Tests:
>MuP21 running P21Forth : X 1000000 0 DO 34 DROP LOOP ;                  25 S
>MuP21 running P21Forth : X 1000000 FOR 34 DROP NEXT ;                    4 S
>MuP21 w/ high speed sram and no video (estimated):                       1 S
>486 50 running eForth 2.42 (same) : X 1000000 0 DO 34 DROP LOOP ;       17 S
>486 50 running FPC : X 1000 0 DO 1000 0 DO 34 DROP LOOP LOOP ;           2 S
>486 50 running TCOM (optimizing native code compiler)                    1 S

The point of my posting the graphics benchmark was to ground P21 performance
in a "real world" application.  The "do 34 drop loop" benchmark seems utterly
useless to me.

-Dave