title: resource comparison between socket.io vs rest api
body: <p>I am building application on socket.io and node.js expressjs 4 .
  for my opinion socket.io takes much resources then Rest APIs.
  I want to know how i can compare RestApis vs Socket.io in terms of memory ,CPU usage .and which is best for large applications
  Thanks</p>