From: shawjef3@msu.edu
To: caml-list@inria.fr
Subject: Re: HLVM ray tracer performance
Date: Sun, 10 Jan 2010 13:29:42 -0500 [thread overview]
Message-ID: <20100110132942.1995706rwh00q1zq@mail.msu.edu> (raw)
[-- Attachment #1: Plaintext Version of Message --]
[-- Type: text/plain, Size: 1645 bytes --]
Jon,
I wanted to run the raytracing benchmark myself to see if Haskell really was that slow. I'm using ghc 6.10 because that's what ubuntu comes with. I don't know if ghc 6.12 generates slower executables than 6.10 or what else might be going on. I ran each several times and the numbers I pasted are typical (+/- 0.2 seconds, say).
jeff@ubuntu:~/Desktop$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.10.4
jeff@ubuntu:~/Desktop$ g++ --version
g++ (Ubuntu 4.4.1-4ubuntu8) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
jeff@ubuntu:~/Desktop$ ocamlopt -v
The Objective Caml native-code compiler, version 3.11.1
Standard library directory: /usr/lib/ocaml
I compiled the raytracers for c++, haskell and ocaml from
http://www.ffconsultancy.com/languages/ray_tracer/code/5
and used the compile instructions at
http://www.ffconsultancy.com/languages/ray_tracer/benchmark.html
though I had to change the haskell one to use just ghc instead of specifying a version. I also ran the ocaml and haskell code in the 1/ directory, and they completed within 0.1 seconds of each other.
c++
jeff@ubuntu:~/Desktop$ time ./ray 9 512 > /dev/null
real 0m3.515s
user 0m3.440s
sys 0m0.016s
haskell
jeff@ubuntu:~/Desktop$ time ./ray 9 512 > /dev/null
real 0m5.811s
user 0m5.752s
sys 0m0.032s
ocaml
jeff@ubuntu:~/Desktop$ time ./ray 9 512 > /dev/null
real 0m6.572s
user 0m6.544s
sys 0m0.016s
Jeff
[-- Attachment #2: HTML Version of Message --]
[-- Type: text/html, Size: 1936 bytes --]
next reply other threads:[~2010-01-10 18:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-10 18:29 shawjef3 [this message]
2010-01-10 20:14 ` [Caml-list] " Jon Harrop
2010-01-10 20:37 ` Richard Jones
2010-01-11 11:03 ` Jon Harrop
2010-01-11 0:47 ` Jeff Shaw
2010-01-11 10:48 ` Jon Harrop
-- strict thread matches above, loose matches on Subject: below --
2010-01-08 14:53 Jon Harrop
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=20100110132942.1995706rwh00q1zq@mail.msu.edu \
--to=shawjef3@msu.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