From: Issac Trotts <ijtrotts@ucdavis.edu>
To: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] DFT in OCaml vs. C
Date: Thu, 27 Mar 2003 11:40:31 -0800 [thread overview]
Message-ID: <3E8353AF.2090602@ucdavis.edu> (raw)
In-Reply-To: <16002.55666.945143.140530@lachesis.inria.fr>
Fabrice Le Fessant wrote:
>> Here's a numerical mini-benchmark comparing C to OCaml
>> on a simple implementation of the Discrete Fourier Transform:
>>
>> http://redwood.ucdavis.edu/~issac/dft_compare.tar.gz
>>
>> The results on my 1 GHZ Pentium III Linux box:
>>
>>
>
>
>
>> I'd be interested if anyone on this list knows of a way
>> to make it perform as well as the C version (without using the FFT.)
>>
>>
>
>If you really want to benchmark the numerical code, then, write a
>program where there is only numerical code. Given the size of the
>matrices you use (8), one can wonder if the program spends more time
>to compute the FFT or to test and print the results.
>
Okay, I should have made the code clearer. The bulk of the time is spent
in the test2 function, which works on signals much longer than eight
samples.
After removing the printf calls and test1, the time doesn't improve much:
real 1m47.500s
user 1m37.820s
sys 0m0.250s
Thanks for the suggestions.
Issac
-------------------
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:[~2003-03-27 19:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-27 7:33 Issac Trotts
2003-03-27 10:58 ` Fabrice Le Fessant
2003-03-27 19:40 ` Issac Trotts [this message]
2003-03-27 14:21 ` Markus Mottl
2003-03-27 20:47 ` Issac Trotts
2003-03-27 14:32 ` Xavier Leroy
2003-03-27 14:55 ` Falk Hueffner
2003-03-27 16:06 ` OCaml performance (was: Re: [Caml-list] DFT in OCaml vs. C) David Monniaux
2003-03-27 21:27 ` Issac Trotts
2003-03-27 20:54 ` [Caml-list] DFT in OCaml vs. C Issac Trotts
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=3E8353AF.2090602@ucdavis.edu \
--to=ijtrotts@ucdavis.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