• 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: Mike Cohen <email@hidden>
  • Date: Thu, 04 Apr 2002 11:13:17 -0500

No, my application runs only under X, so I'm not doing any tests under 9. I
figured the difference was due to OT running on top of BSD networking.

On 4/4/02 4:55 AM, "Peter Sichel" <email@hidden> wrote:

> 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/ ]

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

Sound is the same for all the world - Youssou N'dour, "Eyes Open"
_______________________________________________
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.

References: 
 >Re: Open Transport vs. Sockets (From: Peter Sichel <email@hidden>)

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