slow-rest-api
A REST API that is slow.
Part of the The Node.js Performance Workshop.
Steps
- clone this repository
npm install
node index
- In another terminal:
npm test
Running Clinic Doctor
- 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
.
Generating a flamegraph
- 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
.
License
MIT