From: "sebastien FURIC" <sebastien.furic@tni-valiosys.com>
To: Alain Frisch <frisch@clipper.ens.fr>, Caml list <caml-list@inria.fr>
Subject: Re: [Caml-list] Num library
Date: Thu, 10 Oct 2002 11:42:13 +0200 [thread overview]
Message-ID: <3DA54B75.80A7E7ED@tni.fr> (raw)
In-Reply-To: <Pine.SOL.4.44.0210101033080.11248-100000@clipper.ens.fr>
Hello,
Alain Frisch a écrit :
>
> Hello Caml List,
>
> I'm considering using the Num library (from the standard distribution) for
> implementing numbers in an interpreter. Questions:
>
> - Is there any benchmark available ? What is the overhead when dealing
> with "small" integers ?
>
> - How does the library compare with other large/rational numbers
> implementations ?
I made some benchmarks with Dolphin Smalltalk (a pure Smalltalk
bytecode interpreter) and O'Caml (using ocamlopt) a few months ago. To
my great surprise, Dolphin Samlltalk outperformed O'Caml by a factor of
4 over various tests IIRC. I think the same results may be obtained with
other modern big numbers implementations against O'Caml's one.
The context was the following: I had to rewrite a program that performs
symbolic manipulations from Smalltalk to O'Caml and this benchmark was
the first thing I did to test O'Caml's performance (I was a little
disappointed!). Finally, despite O'Caml's poor performance over bignum
computations, O'Caml outperformed Smalltalk by a factor of 100 over
"real world" benchmarks! (because only a few percents of the time is
spent in bignum calculations and most of the time is spent doing
substitutions etc.).
Sébastien.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-10-10 9:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-10 8:42 Alain Frisch
2002-10-10 9:42 ` sebastien FURIC [this message]
2002-10-10 14:56 ` Yaron M. Minsky
2002-10-10 17:14 ` Pierre Weis
2002-10-10 18:53 ` Alain Frisch
2002-10-11 20:01 ` Pierre Weis
2002-10-10 19:45 ` Yaron M. Minsky
2002-10-10 17:08 ` Pierre Weis
2002-10-11 9:26 ` Sebastien Furic
2002-10-11 20:17 ` Pierre Weis
2002-10-11 10:22 ` Alessandro Baretta
2002-10-11 13:23 ` Claude Marche
2002-10-11 16:14 ` Sebastien Furic
2002-10-11 14:08 ` Jean-Christophe Filliatre
2002-10-11 18:35 ` "custom" operators in caml (was: Re: [Caml-list] Num library) Chris Hecker
2002-10-11 20:30 ` [Caml-list] Num library Pierre Weis
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=3DA54B75.80A7E7ED@tni.fr \
--to=sebastien.furic@tni-valiosys.com \
--cc=caml-list@inria.fr \
--cc=frisch@clipper.ens.fr \
/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