From: "Yaron M. Minsky" <yminsky@CS.Cornell.EDU>
To: <caml-list@inria.fr>
Subject: Re: [Caml-list] Num library
Date: Thu, 10 Oct 2002 10:56:50 -0400 (EDT) [thread overview]
Message-ID: <23100.209.9.234.140.1034261810.squirrel@dragonfly.localdomain> (raw)
In-Reply-To: <3DA54B75.80A7E7ED@tni.fr>
Num is by all accounts a pretty mediocre bignum implementation. There's
also mlgmp, which is an interface to GMP. I haven't used it, but GMP is
fast. There's also Numerix, which I have used. Numerix at least at one
point was a good deal faster than GMP in many cases, and is very easy to
use. I'm not sure how GMP and Numerix compare in terms of speed these
days, since GMP has seen more development and Numerix has not.
y
> 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
--
|--------/ Yaron M. Minsky \--------|
|--------\ http://www.cs.cornell.edu/home/yminsky/ /--------|
Open PGP --- KeyID B1FFD916 (new key as of Dec 4th)
Fingerprint: 5BF6 83E1 0CE3 1043 95D8 F8D5 9F12 B3A9 B1FF D916
-------------------
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 14:56 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
2002-10-10 14:56 ` Yaron M. Minsky [this message]
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=23100.209.9.234.140.1034261810.squirrel@dragonfly.localdomain \
--to=yminsky@cs.cornell.edu \
--cc=caml-list@inria.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