4 ms·
It's embarrassing that Fortran gets beat by Java.
by mtdewcmu 12y ago
It's embarrassing that Fortran gets beat by Java.
- short_circut 12y agoThat is if we accept the assumption that this was well written modern fortran code. Since they don't actually show the fortran it is hard to say. I looked through the referenced posts and all of those are using fortran 77. Furthermore it depends very very heavily on compiler optimizations. Yet another thing they made no mention of. http://unriskinsight.blogspot.co.at/2014/05/the-f-word-of-programming.html http://unriskinsight.blogspot.co.at/2014/05/the-f-word-of-pr...
- pkolaczk 12y agoIt's embarrassing that Fortran got beaten by a very unoptimized Java code. But this is probably not because of Fortran is slow and Java is fast, but because the whole benchmark results are pretty much a coincidence of bad coding and if someone else wrote it, the results could be as well completely reversed. E.g. the Java code uses some of the worst performance antipatterns that are possible to do in Java, e.g. like creating small objects everywhere (Optional), while C++ version uses primitives like ints and bools.