D benchmarks
Russel Winder
russel at winder.org.uk
Mon Mar 11 02:40:05 PDT 2013
On Mon, 2013-03-11 at 00:36 +0100, David Nadlinger wrote:
> Hi all,
>
> I am currently finalizing my material for the LDC DConf talk, and
> I thought it would be nice to include a quick runtime performance
> comparison between the different compilers, just to give the
> audience a general sense of what to expect.
>
> Thus, I am looking for benchmarks to use in the talk.
> Specifically, they should:
>
> - be open source, or at least source-available, so other people
> can reproduce the results
> - be *reasonably* self-contained, so that I don't have to spend
> three hours setting up build dependencies
> - be written mostly in D, I don't want to benchmark GCC
> - work with DMD 2.061 or DMD 2.062
> - run on Linux or OS X
I have a variety of D implementations of "Calculating π by
quadrature" (including the one David Simcha contributed for testing
std.parallelism). This is a trivial, data parallel, embarrassingly
parallel problem that I use for comparing scaling in various languages
in comparison to C. There is no experiment set up, just single run. It
uses SCons for the D build which will require the fork of SCons I have
that includes (almost reasonable) support for D build. On the other hand
all the files are fundamentally self-contained except for reliance on
one module in the same directory so rdmd should work just fine. The code
is released under GPLv3 and is available on GitHub:
git at github.com:russel/Pi_Quadrature.git
and my own website, for cloning:
http://www.russel.org.uk/Git/Pi_Quadrature.git
or for browsing:
http://www.russel.org.uk/gitweb/?p=Pi_Quadrature.git;a=summary
If there are any errors or infelicities of D coding I would be very
pleased to hear of them, especially if the come with a pull request!
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130311/e4ed3081/attachment-0001.pgp>
More information about the Digitalmars-d
mailing list