Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ocaml sums the harmonic series -- four ways, four benchmarks: floating point performance
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Ocaml sums the harmonic series -- four ways, four benchmarks: floating point performance
On Sun, Jan 23, 2005 at 01:07:30AM -0500, Will M. Farr wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I'm running 10.3.7 -- I don't think there's any newer version.  When I 
> run harmonic4 as follows:
> 
> time ./harmonic 1000000000
> 21.3005
> 
> real    1m3.764s
> user    1m0.590s
> sys     0m0.130s
> 
> the above is what I get.  I'm not sure why I'm not exactly 2x faster 
> than you, but there's plenty of things which could affect that.
> 
> Running the bytecode on my system gives:
> 
> time ./harmonic.bc 1000000000
> 21.3005
> 
> real    11m51.239s
> user    11m11.600s
> sys     0m0.940s
> 
> I would be pretty surprised to see the bytecode come even close to the 
> native code version --- are you sure about the numbers on your system?

No, not more!

I have used the wrong binary! :(

I thought I had the same names for the executables, after recompiling
them for the test, but the native-code had a different name and so I called
the same file twice! :(

Sorry, I'm really chaotic these days! :(

Ciao,
   Oliver