node-process-cpu-usage
Aim
Get % CPU usage of current node process.
Usage
const ProcessCPULoad = ProcessCPULoad; const tracker = ; trackerstart { console;};
Have a try
# start example server $ cd bash$ ./benchmark-server.sh # start wrk benchmark client $ ./benchmark-client.sh # see the console output of script benchmark-server.sh # and use read-load-by-ps.sh to see the CPU usage from linux ps command $ ./read-load-by-ps.sh