Open Transport vs. Sockets
Open Transport vs. Sockets
- Subject: Open Transport vs. Sockets
- From: Mike Cohen <email@hidden>
- Date: Wed, 03 Apr 2002 17:21:58 -0500
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/ ]
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.