HNHacker News
TopNewBestAskShowJobs

zinxq

1,899 karma · joined January 24, 2008

submissionscomments
zinxq··on "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"
If you're comparing something to PHP's speed, you've already lost.
zinxq··on Zeromq: Fast Messaging
The note that they get 2.5 million messages per second (and they mention 512byte messages). I don't doubt this is true but so what? All they are quoting (from my quick math) is the speed of a 10G network.

I can write a small program to stream 512byte messages from one machine to another on a 10G network and get 2.5 million messages across too. They're also assuming the network connection is setup and that the messages are fully formatted and ready to send. They also dont have any messaging acknowledgment or anything.

Please check my math: (I was lax with 1000 or 1024, but results are similar)

k = 1024

meg = 1024 x 1024 = 1048576

Gigbit network = 1048576 x 1000= 1048576000

10Gigibit network = 1048576000 x 10 = 10485760000

Convert from bits to bytes:

10485760000 / 8 = 1310720000 bytes per second

i.e., 1310720000 is the number of bytes that a 10G network can push per second. Note, thats raw - TCP overhead and such will eat some measurable portion.

how many 512 byte messages fit in that?

1310720000/512 = 2,560,000 (just like they said)

I'm wondering if they actually tested this or just did this math. Because again, this has nothing to do with their product, its just the throughput of a 10G network - and again, these numbers don't factor the 40byte TCP headers per packet.

So.. if we made a webserver out of their message infrastructure (even lets say, just a static webserver that only serves 512 byte pages ) - we can get 2.5million pages served per second?

zinxq··on Diary of a Failed Startup
This seemed more like just a "website" than a start-up.
zinxq··on The Idea About Ideas
Oldie but a goodie. The Lizard Brain post on that blog I think is the best tho.
zinxq··on Ask YC: Read any good books lately?
Influence by Robert Cialdini. This book is required reading for any entrepreneur who will eventually be a marketer (i.e. all of them)
zinxq··on Ask YC: Recommend a hosting company.
Serverbeach is excellent. Google on "serverbeach referral" - there's plenty of codes out there to get you money off.
← PreviousPage 5 of 5