Skip to content

Performance issue in socket.io 1.3.6 #2251

Closed
@darrachequesne

Description

@darrachequesne

Hi! While benching socket.io for #2239 with https://github.com/darrachequesne/siobench (forked from https://github.com/mixu/siobench), I noticed a quite important decrease in performance between version 1.3.5 and 1.3.6. The memory footprint does increase a lot:

  • node siobench.js 1.3.5 stops at ~1400 clients, RSS ~ 90Mb:
    1 3 5-mem
  • node siobench.js 1.3.6 stops at only ~700 clients, RSS ~ 180Mb:
    1 3 6-mem
    (The tests were of course run on the same machine) Has anybody else noticed such a drop in performance?
    After some analysis, this seems to be related to the following commit ae5420b (you can bench it with node siobench.js 1.3.6-patch), which consists in a bump of engine.io (socketio/engine.io@ab2bd0b to socketio/engine.io@f3fd4bb, which itself consists in some minor changes (I think) and a bump of engine.io-client (socketio/engine.io-client@4f87aae to socketio/engine.io-client@d010541), which includes the following:
   "dependencies": {
-    "has-cors": "1.0.3",
-    "ws": "0.7.1",
-    "xmlhttprequest": "https://github.com/rase-/node-XMLHttpRequest/archive/a6b6f2.tar.gz",
+    "has-cors": "1.1.0",
+    "ws": "0.7.2",
+    "xmlhttprequest-ssl": "1.5.1",

Could this be related? Or are my results completely inconsistent?

Edit: Nodejs version
npm -v 2.11.3
node -v v0.12.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions