Timers and timing, was: MySQL Performance 6.0rc1
Massimo Lusetti
massimo at cedoc.mo.it
Fri Oct 28 07:05:36 PDT 2005
On Fri, 2005-10-28 at 10:23 +0200, Massimo Lusetti wrote:
> Yep, and on 5.3-STABLE of 12/2004 on a Xeon 2.8G
>
> null function: 0.00460
> getpid(): 0.41424
> time(): 0.55854
> gettimeofday(): 0.54748
>
>
> But, while repeating, I've seen values of time() and gettimeofday()
> changing even to more then 2 secs.
These results are with
kern.timecounter.hardware: TSC
kern.timecounter.choice: TSC(800) i8254(0) dummy(-1000000)
> For the records her
> (e is the result on a Linux kernel 2.6.12-1.1380_FC3
> (Fedora Core 3) on a P4 1.8G
>
> null function: 0.00947
> getpid(): 0.00988
> time(): 3.80196
> gettimeofday(): 4.04731
I don't know how to get infos about timecounter on linux.
Regards
--
Massimo.run();
More information about the freebsd-current
mailing list