nodejs-logging

PREREQUISITES

  • nodejs 18.12.x or >
  • npm 8.19.x or >
  • apache bench

STEPS TO RUN

  1. npm install
  2. verify if pinoLogs and winstonLogs dir are present if not create em
  3. node pino.index.js
  4. node winston.index.js

PERFORMANCE TEST

  1. ab -n 10000 -c 1000 http://localhost:3001/winston
    
  2. ab -n 10000 -c 1000 http://localhost:3000/pino
    

STATS

image

no logs

noLogs

pino

pinoLogs

winston

winstonLogs