A REST API that is slow.
Part of the The Node.js Performance Workshop.
- clone this repository
npm install
node index
- In another terminal:
npm test
- Install clinic with
npm install clinic -g
- Run
clinic doctor -- node index
- What is the problem?
A sample doctor output is included in doctor.html
.
- Make sure you are on Linux or Mac OS X, and you have superuser permissions
- Install clinic with
npm install clinic -g
clinic flame -- node index
- In another terminal, as soon as possible:
npm test
- CTRL-C the
clinic
process.
A sample flamegraph is included in flamegraph.html
.
MIT