Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fortran Vs C

Status
Not open for further replies.

ccrum

Electrical
Joined
Apr 20, 2001
Messages
17
Location
US
Anyone have a good test to prove that FORTRAN is faster for math than C?
 
Most people won't have straight out "code" for you to test personally if that is what you are looking for. There exists a lot of results of more professionally done test on the web that bear out that in "general", fortran is "usually" faster for math related stuff.

I've written stuff in Fortran that has been a LOT faster than some other peoples codes. However... they used their algorithms and I used mine. Mine may have been faster just because I was using a better algorithm technique. Such things as this tell nothing about the language itself.

On a side note... I have ( just for fun ) tested Fortran against VB on several different occasions... both for numerical and non-numerical ( read, lots of string processing ) codes. The Fortran has always been at least 20% faster and has sometimes been several hundred percent faster.

Dan :-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top