Re: OFFTOPIC: Linux Kernel is Too Good.

Vladimir Volovich (vvv@vvv.vsu.ru)
07 Feb 1998 23:14:36 +0300


"OT" == Olaf Titz writes:

>> I have run a very trivial program called loops.c:
OT> Which measures only floating point performance (and doesn't count
OT> if anything else runs on that box, to get meaningful results run
OT> it in single user mode).

This measures only the performance of the empty loop, ;-) because the
-O2 option simply removes the assignment statement (with evaluation of
sine) from the loop, as x is not referenced outside the loop:

while(i++ < MAXLOOPS) {
x = sin(x/(i+1));
}

Best regards, -- Vladimir.

-- 
I have made mistakes but I have never made the mistake of claiming
that I have never made one.
		-- James Gordon Bennett
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu