How to time speed of "write" on unix socket?
How to time speed of "write" on unix socket?
- Subject: How to time speed of "write" on unix socket?
- From: Larry Gerndt <email@hidden>
- Date: Sat, 24 Jan 2004 22:50:32 -0800
I'm in the process of benchmarking my app's performance, and one of the
areas I looked at was transmission speed (my app is a client which sends
data to a host server using a unix socket). Since my socket is set for
blocking, I assumed all I had to do time transmission speed was check
::UpTime before and after the socket "write" call. However, the interval
I'm reading is way smaller than it could possibly be (for example, 55 uSec
to write 17Kbytes). This makes me think that all my "write" is really doing
is writing to the local TCP buffer, is that correct? If so, how do I
measure the socket's actual transmission speed to the host? Thanks in
advance.
--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.