On Sun, Feb 14, 2010 at 08:06:20PM +0100, Joakim Tjernlund wrote: > the warmup isn't really needed after I added memset and inline or not should > not matter that much are only used once so I think my > conclusion still stands: gcc 4.3.4 is slower with -O2 than -O1
You mean this particular GCC version on this particular benchmark. You'd need to benchmark orders of magnitude more code to be able to talk about -O1 vs. -O2 in general. ;) Jakub