1. # perf-counters
    
  2. 
    
  3. Lightweight bindings to Linux perf event counters.
    
  4. 
    
  5. ```
    
  6. $ node
    
  7. > var PerfCounters = require('perf-counters');
    
  8. > PerfCounters.init();
    
  9. > var start = PerfCounters.getCounters(); console.log('test'); var end = PerfCounters.getCounters();
    
  10. test
    
  11. > start
    
  12. { instructions: 1382, loads: 421, stores: 309 }
    
  13. > end
    
  14. { instructions: 647633, loads: 195771, stores: 133246 }
    
  15. >
    
  16. ```