# 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.

![Cheat sheet: Performance Basics: Measure First](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/4eeada81832940f3a0f83e482f194c65.webp)

- Category: Node.js
- Level: Freelancer
- Tags: autocannon, Blocking Code, Index in MongoDB, Latency, Load Testing, nodejs, Pagination, web-development
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-pro-performance-basics-cheat-sheet
