Ok so in some spare time i have developed a nodejs/socketio application that streams video but i would like to know what sort of stats its running at, i have my activity monitor running and currently with 2 users sending each other data streams and the stats are as follows:
%CPU: 6.0
Threads: 5
Real Memory: 59.6mb
How can i work out the total MB/GB of data sent on the server?
Buffer.from(string, 'utf8').byteLength
So just add up all bytes and you will have how much bandwidth you use. Actually, that's what I use at trafikito.com while counting how much data is coming into the system. – Thoroughpaced