Low latency is an end-to-end property. A quick inner loop matters, but allocation, queuing and serialization can dominate the time a user observes.
Map the path
Break a request into input parsing, admission, scheduling, computation, storage and response. Measure every stage and the full path. A local improvement is only valuable when it changes the end-to-end distribution.
Make the hot path predictable
Preallocate buffers when sizes are known, avoid repeated parsing and keep shared locks away from critical work. Clear ownership reduces coordination and makes performance easier to reason about.
Measure tails
Track median, p95 and p99 latency under a realistic arrival pattern. Record throughput and errors alongside latency so a benchmark cannot look faster by silently dropping work.