Fortran now in the Great Language Shootout

From: Simon Geard (simon_at_quintic.co.uk)
Date: 02/28/05


Date: Mon, 28 Feb 2005 09:37:39 +0000

Thought you might like to know that Fortran now appears on the Great
Language Shootout:

http://shootout.alioth.debian.org

I have already submitted fixes for sum-file and statistics tests.

One thing that this has highlighted is that the sum-file program is
about 10 times slower than the corresponding c-program. I expected
variation but 10x seems excessive to me - is this what is to be
expected? Is it a compiler problem? Any ideas?

! The Great Computer Language Shootout
! http://shootout.alioth.debian.org/
!
! Simon Geard, 6/12/04
!
! Building info.
! ==============
!
! Linux - using the Intel Fortran90 compiler:
!
! ifort sum.f90 -O3 -static-libcxa -o sum
!
program sum
   implicit none
   integer :: datum, s
   s = 0
   do
      read(5,*,end=10) datum
      s = s + datum
   end do
10 continue
   write(*,'(i0)') s
end program sum

Simon Geard



Relevant Pages

  • Re: Fortran now in the Great Language Shootout
    ... Simon Geard wrote: ... > Thought you might like to know that Fortran now appears on the Great ... The Great Computer Language Shootout ... > end program sum ...
    (comp.lang.fortran)
  • Re: Fortran now in the Great Language Shootout
    ... > Thought you might like to know that Fortran now appears on the Great ... The Great Computer Language Shootout ... based on nsieve by Simon Geard ... end program nsievebits ...
    (comp.lang.fortran)
  • Re: Fortran now in the Great Language Shootout
    ... > Thought you might like to know that Fortran now appears on the Great ... The Great Computer Language Shootout ... based on nsieve by Simon Geard ... end program nsievebits ...
    (comp.lang.fortran)
  • Re: Fortran now in the Great Language Shootout
    ... > Thought you might like to know that Fortran now appears on the Great ... > I have already submitted fixes for sum-file and statistics tests. ... It could be a compiler problem, it could be a library problem, or an O/S ... version ran in minutes whereas the VAX Fortran verion ran in seconds. ...
    (comp.lang.fortran)