gettimeofday() in hping
Stefan Lambrev
stefan.lambrev at moneybookers.com
Tue Jan 22 02:57:28 PST 2008
Greetings,
I noticed that hping3 (from ports) is quite slower when running on
FreeBSD compared to Linux.
Simple ktrace shows lot of gettimeofday() calls, so I'm looking for
replacement of this function.
I tried clock_gettime() (using CLOCK_REALTIME for clock_id), but this
yield worse performance.
Of course changing timecounter to TSC make hping almost twice faster,
but I'm wandering if I can optimize things more?
--
Best Wishes,
Stefan Lambrev
ICQ# 24134177
More information about the freebsd-hackers
mailing list