Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.01 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.01 KB

NodeJS Performance enhancing drugs

Also: let's make this sh!t slow

General usage of this project

This project is meant to showcase and experiment with different performance metrics in NodeJS.

Most files will include comments with autocannon and/or 0x commands to run. Make sure to install these globally:

And if you are to lazy to think, here is the copy/pasta:

  • yarn global add autocannon 0x

Optionally you can install pm2 globally, but it is also installed locally in this project.

Installation

  • download or git clone
  • yarn install

Run commands

A bunch of scripts to launch our app.

Native nodejs

  • yarn run app:start:native

Managed by pm2

  • yarn run app:start:pm2
  • yarn run app:restart:pm2
  • yarn run app:stop:pm2

Building the native addon

  • cd module
  • node-gyp configure build

Debugging with Clinic.js

installation

  • yarn global add clinic

Running

  • clinic doctor -- node index.js