Go Runtime Performance Checkpoint

Trace fresh cases, diagnose plausible bugs, and separate the exercise model from production guarantees.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. A 20-byte arena allocates 3 bytes, then AllocAligned(5,8). How many bytes remain? Enter one integer.
2. off=2 in an 8-byte arena; n=MaxInt. Which check is safe before adding? Select one answer.

Select one answer.

3. After Reset, a new allocation overwrites bytes referenced by an old slice. What is the bug if an async reader still uses the old slice? Select one answer.

Select one answer.

4. A benchmark reduces dst to 1 byte and becomes much faster with 0 allocations. What should be checked first? Select one answer.

Select one answer.

5. A Go process exceeds GOMEMLIMIT. Which fact is compatible with the documented control? Select one answer.

Select one answer.

6. For GET /echo?msg=x%2Fy in this course subset, what Content-Length does the response body have? Enter one integer.
7. A complete valid request needs more response bytes than dst holds. What should the caller observe? Select one answer.

Select one answer.

8. Caching a 20-byte slice of a 4 MiB backing buffer has zero new allocation at lookup. What can still happen? Select one answer.

Select one answer.

Join Discord