Performance Basics: Measure First

Before making an API faster, measure it, with a timing middleware for one request and autocannon for many at once, because the usual causes of a slow route are CPU work that blocks the event loop, a query with no index, or a list with no paging, and only numbers show which one it is.

By

Updated

Cheat sheet: Performance Basics: Measure First
Category
Node.js
Level
Freelancer
Tags
autocannon, Blocking Code, Index in MongoDB, Latency, Load Testing, nodejs, Pagination, web-development