Hello Jeff,
What 300Mhz CPU is that?
Here's my results:
C (PPC@180Mhz): 1.08 sec
C (M68k@50Mhz): 6.42 sec
REBOL (: ~230 secs (100*1000 iter = 0:00:23)
I didn't have patience for 1'000'000 iterations in REBOL :(
My system:
Amiga 4000, CyberStormPPC MC68060@50Mhz, PPC604e@180Mhz
REBOL: 2.2.0.1.1
REBOL, runs on the 060@50Mhz (well ofcourse, more about that later),
but ~35 times slower than C :(
Here's the commandlines I used to compile (vbcc C compiler):
(M68k) vc -cpu=68060 -fpu=68060 -lm040 -O0 test.c -o test.060
(PPC) vc +ppc -O0 -lm test.c -o test.elf
(notice -O0 (no optim.) to prevent compiler from cheating :)
Questions to REBOL tech.
* Has the AmigaPPC version been dropped? (please say no!)
* Will there be an Amiga version that utilizes FPU? (I hope this one's not!)
I really hate to see my Amiga beeing beaten so severly on performance :(
Compiling for FPU/060/PPC isn't that hard, please, please!
Not meaning to complain, it's just that results like this makes me very sad :(
Best regards
Thomas Jensen
On 10-Nov-99, [EMAIL PROTECTED] wrote:
>
> REBOL is on par with PERL as far as loop execution
> speed as the following simplistic tests reveal. These
> are, of course, nothing like comprehensive benchmarks.
> (on a 300 mhz linux)
>
> -jeff
>
> ----- REBOL loop speed test ---- 11 seconds
>
> REBOL [Title: "Loop speed test"]
> start: now/time
> a: 9.0
> b: 0.5
> loop 1000 [loop 1000 [c: a ** b]]
>
> print now/time - start
> quit
>
-- snip --
> ------ C nested loops --- 5 seconds
>
> #include <stdio.h>
> #include <math.h>
>
> main() {
> int i = 0, j = 0;
> float a = 9.0, b = 0.5, c;
>
> while ( j++ < 1000 )
> for ( i = 0 ; i++ < 1000 ; )
> c = pow (a, b);
> }
>
>