• 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: Sockets slow on Macintosh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sockets slow on Macintosh


  • Subject: Re: Sockets slow on Macintosh
  • From: Quinn <email@hidden>
  • Date: Wed, 6 Apr 2005 11:20:28 +0100

At 15:39 -0700 5/4/05, Tron Thomas wrote:
To test this idea, I have written a much simpler client/server implementation that simulates what the original code tries to do. I ran this new implementation on an G4 iMac with 512 Megabytes of RAM, running at 800 Megahertz, and using Mac OS X 10.3.8. I sent 370 text messages from the client to the server. The process took over a minute and a half to complete. I ran the same program on an Intel Pentium IV with 512 Megabytes of RAM, running at 1.7 Gigahertz, and using Fedora Core 3 Linux. That system took just over 5 seconds to complete the same number of iterations.

The first thing I'd do is install Darwin on to the x86 machine. That way you can compare the same program on the same hardware. My guess is that you'll find that Darwin x86 is just as slow as Darwin on PowerPC, but my experience has shown that, as far as optimisation is concerned, guesses aren't worth much.


Also, are you launching a new copy of the client per message? It certainly looks that way from the client's source and test script. If so, you're not really testing the performance of sockets, but the performance of fork/exec; and I know for a fact that Linux canes Mac OS X in that regard. You can isolate this by having the client take an argument telling it how many iterations you want, and throwing a big for loop around the current client code.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Sockets slow on Macintosh (From: Tron Thomas <email@hidden>)

  • Prev by Date: Re: Sockets slow on Macintosh
  • Next by Date: QTunnel-Sample
  • Previous by thread: Re: Sockets slow on Macintosh
  • Next by thread: Re: Sockets slow on Macintosh
  • Index(es):
    • Date
    • Thread