calculate transfer-rate of request/response for Nodejs