[rsyslog] high-performance, low-precision time API under linux?
Thomas Mieslinger
Thomas.Mieslinger at 1und1.de
Mon Jun 15 19:57:43 CEST 2009
BTW: In the Informix DBMS the Software Architects decided to implement an OS independent timer thread to work arround (very costly in the late 90s) gettimeofday() calls.
I've run the code on some Solaris 10 boxes, because they were known for their slow gettimeofday() implementation
S11 snv_105 Pentium 4 3GHz
time ./a.out 100000
real 0m0.087s
user 0m0.082s
sys 0m0.004s
S10 Generic_138889-03 Athlon 2,2GHz
time ./a.out 100000
real 0m0.028s
user 0m0.026s
sys 0m0.002s
ok, lets try this on an older boxes...
suse70 2.2.21 libc-2.1.3-141 2xP3 800
time ./a.out 100000
real 0m0.100s
user 0m0.080s
sys 0m0.020s
So, what are you using as a development box?
More information about the rsyslog
mailing list