Skip to content

Instantly share code, notes, and snippets.

@mrjoes
Created December 13, 2011 12:57
Show Gist options
  • Save mrjoes/1472044 to your computer and use it in GitHub Desktop.
Save mrjoes/1472044 to your computer and use it in GitHub Desktop.
sent: number of messages sent by one client per second
recv: total number of messages received per one second
pings: in milliseconds
node.js echo server with commented log output:
clients: 5, sent: 8759.521709, recv: 43795.308466, min_ping: 0, max_ping: 4, avg_ping: 0.399996, errors: 0
clients: 25, sent: 1998.742675, recv: 49938.586699, min_ping: 0, max_ping: 20, avg_ping: 1.998743, errors: 0
clients: 50, sent: 1051.625850, recv: 52363.271976, min_ping: 0, max_ping: 59, avg_ping: 5.885065, errors: 0
clients: 100, sent: 514.820466, recv: 50273.736734, min_ping: 0, max_ping: 233, avg_ping: 22.884596, errors: 0
clients: 150, sent: 365.081970, recv: 52460.994307, min_ping: 0, max_ping: 473, avg_ping: 46.202689, errors: 0
python 2.6.6:
clients: 5, sent: 150.285472, recv: 750.173114, min_ping: 0, max_ping: 42, avg_ping: 4.116501, errors: 0
clients: 25, sent: 743.916398, recv: 18562.088807, min_ping: 0, max_ping: 49, avg_ping: 4.823737, errors: 0
clients: 50, sent: 1382.582878, recv: 69001.340177, min_ping: 0, max_ping: 62, avg_ping: 6.179687, errors: 0
clients: 100, sent: 849.690657, recv: 84476.220634, min_ping: 0, max_ping: 225, avg_ping: 22.268250, errors: 0
clients: 150, sent: 507.143669, recv: 74970.964954, min_ping: 0, max_ping: 589, avg_ping: 57.734890, errors: 0
python 2.6.6 with TCP_NODELAY on:
clients: 5, sent: 7824.461296, recv: 39121.308345, min_ping: 0, max_ping: 2, avg_ping: 0.199996, errors: 0
clients: 25, sent: 2485.268061, recv: 62100.518325, min_ping: 0, max_ping: 21, avg_ping: 2.059142, errors: 0
clients: 50, sent: 1379.122134, recv: 68833.845858, min_ping: 0, max_ping: 72, avg_ping: 7.013260, errors: 0
clients: 100, sent: 715.467173, recv: 71049.836715, min_ping: 0, max_ping: 264, avg_ping: 25.324116, errors: 0
clients: 150, sent: 463.200223, recv: 68273.777576, min_ping: 0, max_ping: 615, avg_ping: 60.114032, errors: 0
pypy 1.7:
clients: 5, sent: 150.229106, recv: 750.099506, min_ping: 0, max_ping: 42, avg_ping: 4.187164, errors: 0
clients: 25, sent: 928.950882, recv: 23188.922363, min_ping: 0, max_ping: 50, avg_ping: 4.869791, errors: 0
clients: 50, sent: 1669.432772, recv: 83254.305842, min_ping: 0, max_ping: 80, avg_ping: 7.887555, errors: 0
clients: 100, sent: 2192.652335, recv: 218121.750469, min_ping: 0, max_ping: 201, avg_ping: 15.176340, errors: 0
clients: 150, sent: 1988.887610, recv: 297180.064600, min_ping: 0, max_ping: 171, avg_ping: 16.531682, errors: 0
pypy 1.7 with TCP_NODELAY on:
clients: 5, sent: 17389.242554, recv: 86935.508243, min_ping: 0, max_ping: 4, avg_ping: 0.399994, errors: 0
clients: 25, sent: 10521.358557, recv: 262992.507146, min_ping: 0, max_ping: 13, avg_ping: 1.275521, errors: 0
clients: 50, sent: 5829.657443, recv: 291335.366544, min_ping: 0, max_ping: 24, avg_ping: 2.393242, errors: 0
clients: 100, sent: 2982.296118, recv: 297478.435434, min_ping: 0, max_ping: 114, avg_ping: 11.035357, errors: 0
clients: 150, sent: 1989.047579, recv: 297107.904090, min_ping: 0, max_ping: 169, avg_ping: 16.692087, errors: 0
@mrjoes
Copy link
Author

mrjoes commented Dec 13, 2011

Unoptimized broadcast():

pypy 1.7:
clients: 5, sent: 211.909006, recv: 1058.528092, min_ping: 0, max_ping: 81, avg_ping: 6.567749, errors: 0
clients: 25, sent: 937.321213, recv: 23401.530329, min_ping: 0, max_ping: 57, avg_ping: 5.573401, errors: 0
clients: 50, sent: 1562.339978, recv: 77961.736063, min_ping: 0, max_ping: 74, avg_ping: 7.297625, errors: 0
clients: 100, sent: 2533.339038, recv: 252621.415114, min_ping: 0, max_ping: 171, avg_ping: 16.727145, errors: 0
clients: 150, sent: 1971.503354, recv: 294453.681277, min_ping: 0, max_ping: 177, avg_ping: 17.603128, errors: 0

python 2.6.6:

clients: 5, sent: 151.039973, recv: 754.204527, min_ping: 0, max_ping: 43, avg_ping: 4.298316, errors: 0
clients: 25, sent: 723.530019, recv: 18053.177655, min_ping: 0, max_ping: 58, avg_ping: 5.454259, errors: 0
clients: 50, sent: 1306.336489, recv: 65189.428770, min_ping: 0, max_ping: 61, avg_ping: 5.978239, errors: 0
clients: 100, sent: 561.761143, recv: 55684.836190, min_ping: 0, max_ping: 339, avg_ping: 33.538281, errors: 0
clients: 150, sent: 348.277490, recv: 51145.973193, min_ping: 0, max_ping: 853, avg_ping: 82.531045, errors: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment