SpinTheMic
Pro

Interview practice question

Profiling a slow CPU-bound endpoint

Backend Engineering · Language Runtimes · Intermediate

One endpoint uses a lot of CPU and is slow, but the code looks fine. How would you find the bottleneck?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Use a sampling profiler.
  • Flame graph to see hot paths.
  • Profile under realistic load.
  • Look for unexpected costs: regex, logging, serialisation.
  • Optimise hottest path, re-measure.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics