rharder
Do not read this sign.
If you've been following the "Arg! Twice as slow as Pentium" thread, you'll be familiar with my discovery that my 500Mhz G4 was taking twice as long as a Pentium to do addition and multiplication of doubles. This was using Project Builder under OS X and Yellow Box for Windows NT.
I've created a very small benchmark program that performs 10 million operations. Actually it's advancing to the next the random number stream, but that's not important for this benchmark.
It's a bunch of additions and multiplications of doubles and longs.
Please try it out and let me know how fast it ran on whatever system you want to compile it on.
There's just one file: quickbench.c. You can compile it with
on most systems. You might also try cc quickbench.c.
Using the Cygwin bash shell and gcc compiler on a 733Mhz Pentium III, this test took 3.0 minutes. That's considerably longer than the 1.8 minutes it took using Yellow Box on Windows NT. I'm starting to wonder how much compilers affect the efficiency of code.
-Rob
I've created a very small benchmark program that performs 10 million operations. Actually it's advancing to the next the random number stream, but that's not important for this benchmark.
It's a bunch of additions and multiplications of doubles and longs.
Please try it out and let me know how fast it ran on whatever system you want to compile it on.
There's just one file: quickbench.c. You can compile it with
Code:
% [b]gcc quickbench.c[/b]
Using the Cygwin bash shell and gcc compiler on a 733Mhz Pentium III, this test took 3.0 minutes. That's considerably longer than the 1.8 minutes it took using Yellow Box on Windows NT. I'm starting to wonder how much compilers affect the efficiency of code.
-Rob