From: Michal Moskal <michal.moskal@gmail.com>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: "Will M. Farr" <farr@mit.edu>,
shootout-list@lists.alioth.debian.org, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Ocaml sums the harmonic series -- four ways, four benchmarks: floating point performance
Date: Sat, 15 Jan 2005 16:49:26 +0100 [thread overview]
Message-ID: <b323bb98050115074947dc200e@mail.gmail.com> (raw)
In-Reply-To: <20050115115519.GA11037@yquem.inria.fr>
On Sat, 15 Jan 2005 12:55:19 +0100, Xavier Leroy <Xavier.Leroy@inria.fr> wrote:
> As others have mentioned, this strongly depends on the processor
> instruction set and even on the processor model. My own benchmarks
> (with your Caml code) give the following results:
>
> PPC G4 (Cube) 1 < 2 < 3 < 4 < 5 speed ratio = 1.5
> Xeon 2.8 3 < 4 < 1 = 2 < 5 speed ratio = 1.02
> Pentium 4 2.0 3 < 1 < 2 < 4 < 5 speed ratio = 1.2
> Athlon XP 1.4 4 < 5 < 3 < 1 < 2 speed ratio = 2.2
I tested it on Athlon 64 3000+ using both 32bit and 64bit compilers,
the results:
32bit: 4 = 5 < 3 < 1 = 2, speed ratio 2.2
64bit: 3 < 1 = 2 = 4 < 5, speed ratio 1.15
Difference between 64 and 32 bit version (best cases) is 1.30 (64 is faster).
All tests were performed using ocaml 3.07.
> The Athlon figures are *very* surprising. It could be the case that
> this benchmark falls into a quirk of that (otherwise excellent :-)
> processor.
So I guess in 32 bit mode it remains the same on newer athlons.
--
: Michal Moskal :: http://nemerle.org/~malekith/ :: GCS !tv h e>+++ b++
: No, I will *not* fix your computer............ :: UL++++$ C++ E--- a?
next prev parent reply other threads:[~2005-01-15 15:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-13 15:53 Will M. Farr
2005-01-13 17:29 ` [Caml-list] " John Prevost
2005-01-13 19:01 ` Will M. Farr
2005-01-13 20:24 ` John Prevost
2005-01-13 20:50 ` Erik de Castro Lopo
2005-01-13 21:32 ` Erik de Castro Lopo
2005-01-15 11:55 ` Xavier Leroy
2005-01-15 15:49 ` Michal Moskal [this message]
2005-01-15 17:01 ` [Caml-list] [FP performance] Ocaml sums the harmonic series Christophe TROESTLER
2005-01-15 17:13 ` [Caml-list] Ocaml sums the harmonic series -- four ways, four benchmarks: floating point performance Yaron Minsky
2005-01-23 2:27 ` Oliver Bandel
2005-01-23 6:07 ` Will M. Farr
2005-01-23 15:18 ` Oliver Bandel
2005-01-16 9:57 Philippe Lelédy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b323bb98050115074947dc200e@mail.gmail.com \
--to=michal.moskal@gmail.com \
--cc=Xavier.Leroy@inria.fr \
--cc=caml-list@yquem.inria.fr \
--cc=farr@mit.edu \
--cc=shootout-list@lists.alioth.debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox