Skip to content

Instantly share code, notes, and snippets.

@samuelastech
Created January 31, 2023 14:35
Show Gist options
  • Save samuelastech/dbba4bc6bc2252719a3b97905b92e29c to your computer and use it in GitHub Desktop.
Save samuelastech/dbba4bc6bc2252719a3b97905b92e29c to your computer and use it in GitHub Desktop.
How to monitor Node.js application using Climen and Autocannon
// The "-r" flag allows you to preload a module when running Node, see https://www.stephenlewis.me/blog/node-dash-r
"scripts": {
"start": "CLIMEM=8999 node -r climem index.js",
"climem": "npx climem 8999",
"test": "npx autocannon -c 100 -d 30 -p 10 http://localhost:3000"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment