Messages in this thread | | | Subject | Re: kernel 2.6 speed | From | Alan Cox <> | Date | Mon, 25 Jul 2005 00:47:49 +0100 |
| |
On Sul, 2005-07-24 at 12:12 -0700, Ciprian wrote: > I'm not an OS guru, but I ran a little and very simple > test. The program bellow, as you can see, measures the > number of cycles performed in 30 seconds.
No it measures the performance of the "time()" call. Windows has some funky optimisations that we never bother with because time() isn't a hot path in the real world.
Instead try code which does
time(&start); while(count++ < LOTS) { Do_stuff } time(&end)
and you'll find the numbers on pure CPU work are essentially CPU bound not OS affected at all
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |