Clinic is a tool to profile your node apps. https://clinicjs.org/
You should visit the site to learn how to use the tool. Following is just a cheat sheet.
This assumes you have a Node JS application you can start with node app.js
Autocannon is a benchmarking tool written in node
yarn global add autocannon
node app.js
autocannon -c 2 -d 5 localhost:8000
yarn global add clinic
clinic -h
clinic doctor --autocannon [ -c 20 -d 5 -m GET 'http://localhost:3000/' ] -- node app.js
clinic bubble --autocannon [ -c 20 -d 5 -m GET 'http://localhost:3000/' ] -- node app.js
clinic flame --autocannon [ -c 20 -d 5 -m GET 'http://localhost:3000/' ] -- node app.js