Chapter 1 Assignment

Benchmark a hot path

The brief

Pick the most-called function in your service (often a serialiser, parser, or auth check). Write a benchmark. Run it 3 times and confirm the numbers are stable. Paste the output in notes.md.

You've completed this when

  • Benchmark function exists in `_test.go`
  • Numbers stable across 3 runs
  • You can interpret each column

Worked through every criterion?

Push your code to GitHub, paste the link in your notes.md, and move on.

Continue to ch.2: Profiling with pprof