I have noticed that in some cases - especially calculating Mandelbrot Fractals there is a severe performance penalty if the COMPLEX data type is used instead of plain variables.
It's nothing wrong with the calculation, but it shall be noted that it can mean a severe performance penalty if the COMPLEX data type is used. Result of test cases I have created: --- [r...@cvs2 frac]# time ./m6 real 0m5.806s user 0m1.705s sys 0m0.032s [r...@cvs2 frac]# time ./m7 real 0m18.598s user 0m12.469s sys 0m0.036s --- -- Summary: Performance using COMPLEX data type Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: minor Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: m4341 at abc dot se http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39087