On 08/17/12 05:06, MacArthur, Ian (SELEX GALILEO, UK) wrote:
> Just for kicks'n'giggles I ported the code to WinXP using the
> QueryPerformanceCounter() API to get timings, and I get...
> [..]
> ian.macarthur@DESDAF599172 /d/examples/qix-win-times
> $ ./qix
> New control cost 0.02(ms)
> Show window cost 21.23(ms)
> [..]

        Here's what I get on centos 5.6 on a 1.8ghz mac mini:

08/17/12 11:28:22 /usr/local/src/fltk-1.3.x-svn/examples
[erco@tahoe] 127 # ./foo
New control cost 0(ms)
Show window cost 109(ms)        <-- FIRST RUN

08/17/12 11:28:29 /usr/local/src/fltk-1.3.x-svn/examples
[erco@tahoe] 128 # ./foo
New control cost 0(ms)
Show window cost 11(ms)         <--

08/17/12 11:28:31 /usr/local/src/fltk-1.3.x-svn/examples
[erco@tahoe] 129 # ./foo
New control cost 0(ms)
Show window cost 10(ms)         <--

        That first run of 109ms shows the overhead of pulling the binary off 
disk,
        and the subsequent runs are shaving off 100ms because they're obviously 
running
        from the disk cache, such that it's only 10ms.


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to