> In windows were performed about 300 millions cycles, > while in Linux about 10 millions. This test was run on > Fedora 4 and Suse 9.2 as Linux machines, and Windows > XP Pro with VS .Net 2003 on the MS side. My CPU is a > P4 @3GHz HT 800MHz bus. > > I published my little test on several forums and I > wasn't the only one who got these results. All the > other users using 2.6 kernel obtained similar results > regardless of the CPU they had (Intel or AMD).
Looking at the gcc-produced code from youe test program I can see the floating point math beeing optimized away all together as you are not using the result and the rest more or less boils down to the call to time() and a few moves and compares of the time values. In other words it seems like you are testing the efficiency of the time() function... BRGDS Dag - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/