Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 298699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:45:20+00:00 2026-05-12T06:45:20+00:00

Fortran’s performances on Computer Language Benchmark Game are surprisingly bad. Today’s result puts Fortran

  • 0

Fortran’s performances on Computer Language Benchmark Game are surprisingly bad. Today’s result puts Fortran 14th and 11th on the two quad-core tests, 7th and 10th on the single cores.

Now, I know benchmarks are never perfect, but still, Fortran was (is?) often considered THE language for high performance computing and it seems like the type of problems used in this benchmark should be to Fortran’s advantage. In an recent article on computational physics, Landau (2008) wrote:

However, [Java] is not as efficient or
as well supported for HPC and parallel
processing as are FORTRAN and C, the
latter two having highly developed
compilers and many more scientific
subroutine libraries available.
FORTRAN, in turn, is still the
dominant language for HPC, with
FORTRAN 90/95 being a surprisingly
nice, modern, and effective language;
but alas, it is hardly taught by any
CS departments, and compilers can be
expensive.

Is it only because of the compiler used by the language shootout (Intel’s free compiler for Linux) ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:45:20+00:00Added an answer on May 12, 2026 at 6:45 am

    No, this isn’t just because of the compiler.

    What benchmarks like this — where the program differs from benchmark to benchmark — is largely the amount of effort (and quality of effort) that the programmer put into writing any given program. I suspect that Fortran is at a significant disadvantage in that particular metric — unlike C and C++, the pool of programmers who’d want to try their hand at making the benchmark program better is pretty small, and unlike most anything else, they likely don’t feel like they have something to prove either. So, there’s no motivation for someone to spend a few days poring over generated assembly code and profiling the program to make it go faster.

    This is fairly clear from the results that were obtained. In general, with sufficient programming effort and a decent compiler, neither C, C++, nor Fortran will be significantly slower than assembly code — certainly not more than 5-10%, at worst, except for pathological cases. The fact that the actual results obtained here are more variant than that indicates to me that “sufficient programming effort” has not been expended.

    There are exceptions when you allow the assembly to use vector instructions, but don’t allow the C/C++/Fortran to use corresponding compiler intrinsics — automatic vectorization is not even a close approximation of perfect and probably never will be. I don’t know how much those are likely to apply here.

    Similarly, an exception is in things like string handling, where you depend heavily on the runtime library (which may be of varying quality; Fortran is rarely a case where a fast string library will make money for the compiler vendor!), and on the basic definition of a “string” and how that’s represented in memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Fortran: There are two large arrays of integers, the goal is to find out
Fortran->Algol->Cpl->Bcpl->C->C++->Java ..... Seems like every language is built upon an ancestor language. My question
With FORTRAN 77 is it possible to perform a swap on two arrays, in
In Fortran dim(x,y) returns the difference x-y if the result is positive; otherwise returns
In older fortran code, when .or. is used with two integer types, is the
does fortran have a maximum 'string' length? i am going to be reading lines
In fortran, I can declare a character string as: character*80 mystring and then send
I am writing a Fortran program which involves a very large number of exponential
What does this Fortran code mean: IF (J1-3) 20, 20, 21 21 J1 =
I have some old fortran 77 I'm trying to port to gcc on Windows.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.