You should give the options you use. If I compile your code using a module with '-Ofast -fwhole-program’ I get the same speed as for the other two tests compiled with '-Ofast’ only. IMO this is related to inlining the routine(s). Dominique