• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to time speed of "write" on unix socket?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: How to time speed of "write" on unix socket?
      • From: Peter Sichel <email@hidden>
  • Prev by Date: Re: Endpoint state - T_OUTCON
  • Next by Date: Re: How to time speed of "write" on unix socket?
  • Previous by thread: Re: OTBufferInfo, et. al.
  • Next by thread: Re: How to time speed of "write" on unix socket?
  • Index(es):
    • Date
    • Thread