• 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
Re: Open Transport vs. Sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Transport vs. Sockets


  • Subject: Re: Open Transport vs. Sockets
  • From: Peter Sichel <email@hidden>
  • Date: Thu, 4 Apr 2002 04:55:21 -0500

Are you measuring:

OT on 9 versus BSD Sockets on X (which is often dominated by
the difference between cooperative versus pre-emptive multitasking)?

The OT shim atop BSD networking on X (which Apple claims is 5-10% slower)?


- Peter


At 5:21 PM -0500 4/3/02, Mike Cohen wrote:
I just did some performance test on my application with OT vs. BSD Sockets.
Both versions of my application do exactly the same thing & both APIs are
encapsulated within a low-overhead class. I find that the version using
sockets is consistantly faster.

I also tested thread manager vs. MP tasks, but there was very little
difference, although I haven't optimized my code to take advantage of
preemptive tasks.

The application connects to a server which runs a script and queries certain
information from the client. Here are the average times (taken by running
each version 5 times) for deployment builds of each version, obtained by
calling TickCount before & after one server transaction:

OT, Thread Mgr: 530.6
Sockets, Thread Mgr: 351
OT, MP Tasks: 540.4
Sockets, MP Tasks: 358.4

--
[ Mike Cohen | http://www.macmegasite.com/ ]
[ email@hidden | http://www.worldbeatplanet.com/ ]

--
_______________________________________________
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: Open Transport vs. Sockets
      • From: Mike Cohen <email@hidden>
References: 
 >Open Transport vs. Sockets (From: Mike Cohen <email@hidden>)

  • Prev by Date: Re: system sleep
  • Next by Date: "enet" Configuration problem
  • Previous by thread: Open Transport vs. Sockets
  • Next by thread: Re: Open Transport vs. Sockets
  • Index(es):
    • Date
    • Thread