Re:Intel Fortran now 20% faster than C, fastest language on ...
by masklinn on Thursday January 12, 2012 @06:54AM
(#3455992)
Most of Fortran's gain is on mandelbrot, but it sucks on binary-trees (10x slower than C). It also tends to use 2x more memory (with a 23x outlier on fannkuch): http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...
[ Parent
| on HN ]
Re:Intel Fortran now 20% faster than C, fastest language on ...
by larsberg on Thursday January 12, 2012 @09:49AM
(#3456470)
binary-trees is rough to beat C on. It involves allocating and traversing some pretty gigantic data structures, and the C code is optimized by using region-style allocation to avoid all of the individual calls to free (or garbage collections in a GC'd language). From the CPU usage, it also looks like they also haven't parallelized the Fortan version yet, though even at ideal speedup it'll still lose.
I've been doing some tuning work on our parallel dialect of ML, and many of the C programs are fairly well-optimized, though mandelbrot still has some room for improvement.