Node.js · Senior · Question 9 of 75

How do you find which functions use the most CPU in production-like conditions?

Explanation

Profiles show where time goes, including GC and native code. Generate load with a tool like autocannon or k6, since idle profiles show nothing useful.

Further reading

Problem with a question

Node.js · Senior · question 9

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz