------- Additional Comments From jblomqvi at cc dot hut dot fi 2005-06-04 17:50 ------- It seems that with current mainline, while gfortran still loses to g77 and ifort, the difference isn't that large. Executing via strace shows that writes are nowadays done in 8k blocks, which probably explains the change. Here are the total times (removing the output file between each invocation):
ifort 8.0: 0,109 g77 3.3: 1,349 gfortran 4.1 20050604: 1,458 Blocksizes in bytes are: ifort 8.0: 262144 g77 3.3: 4096 gfortran 4.1 20050604: 8192 Gfortran is the only one which uses mmap. Also, we can see that ifort uses a _huge_ blocksize, which probably explains why it's over 10 times faster. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16339