Re: Java or C++?
- From: Jon Harrop <usenet@xxxxxxxxxxxxxx>
- Date: Mon, 24 Oct 2005 14:09:28 +0100
Gerry Quinn wrote:
> I have seen such claims for many languages, including Java. Perhaps
> you would provide a link to an unbiased set of benchmark tests that
> demonstrate it.
Fortran vs C on some array benchmarks is probably a good bet. Fortran
compilers often do a lot of platform-specific cache-based optimisation that
a C compiler won't do.
You may also be interested in my ray tracer:
http://www.ffconsultancy.com/free/ray_tracer/languages.html
> My impression is that C tends to score rather highly in performance
> benchmarks.
I wrote a C implementation of my ray tracer. It was a lot slower than the
C++. I am sure I could have optimised to run just as fast but it is
seriously tedious and boring work, even for this 50LOC program. The C was
already the longest implementation at about 200LOC.
So a more important point is that, if you have a non-trivial program,
there's no way you're going to be able to find the time to optimise the
whole thing by hand. You need a language expressive enough that its
compiler will generate efficient code for you. That language isn't C/C++.
--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com
.
- Follow-Ups:
- Re: Java or C++?
- From: Rob Thorpe
- Re: Java or C++?
- From: MSCHAEF.COM
- Re: Java or C++?
- References:
- Java or C++?
- From: Flaran
- Re: Java or C++?
- From: Scott Moore
- Re: Java or C++?
- From: Jussi Jumppanen
- Re: Java or C++?
- From: Chris Dollin
- Re: Java or C++?
- From: Alan Balmer
- Re: Java or C++?
- From: Scott Moore
- Re: Java or C++?
- From: Alan Balmer
- Re: Java or C++?
- From: adaworks
- Re: Java or C++?
- From: Michael Jørgensen
- Re: Java or C++?
- From: adaworks
- Re: Java or C++?
- From: Scott Moore
- Re: Java or C++?
- From: adaworks
- Re: Java or C++?
- From: CTips
- Re: Java or C++?
- From: adaworks
- Re: Java or C++?
- From: adaworks
- Re: Java or C++?
- From: Gerry Quinn
- Java or C++?
- Prev by Date: Re: Java or C++?
- Next by Date: Re: Java or C++?
- Previous by thread: Re: Java or C++?
- Next by thread: Re: Java or C++?
- Index(es):
Relevant Pages
|