Giter Club home page Giter Club logo

16-logs-profiling's Introduction

32- Logs & Profiling

1- Incorporar al proyecto de servidor de trabajo la compresión gzip.

  • instalat gzip
>npm i compression
  • inspeccionar en navegador rutas /info vs /info-gzip

2- Implementar loggueo

>npm i winston
  • ver archivo de configuracion en utils/logger.js

PERFORMANCE

  • Levantar servidor con --prof
>node --prof server.js
  • análisis con artillery
>artillery quick --count 5 --num 10 --output resultados.txt http://localhost:3000/info
  • Comparar performance en ambos casos . con y sin console.log(info)
  • Pasar log de profiler a txt
> node --prof-process  isolate-0x5911610-66286-v8.log > result-prof-debug.txt

Autocannon -> Misma funcionalidad que Artillery

  • levantar servidor
>node --prof server.js
  • correr análisis con autocannon (muy pareccido a artillery):
>autocannon -d 5 -c 10 "http://localhost:3000/info"

0x . Gráfico de flama (ohhh 🔥🔥🔥)

  • Levantar server con 0x
>0x server.js
  • Correr análisis con autocannon o artillery
>autocannon -d 5 -c 10 "http://localhost:3000/info"

16-logs-profiling's People

Contributors

lauriacunia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.