Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A benchmark performs expensive fixture setup before its measured loop. Which change isolates the operation cost?" on CodeWiki (https://codewiki.com/practice/mcq/go/checkpoint-5/checkpoint-5-timer-boundary/).
Context (verbatim from the page):
"""
A benchmark performs expensive fixture setup before its measured loop. Which change isolates the operation cost?
Finish setup, then call `b.ResetTimer()` immediately before the `b.N` loop.
Move setup inside every iteration so the benchmark includes more work.
Replace `b.N` with a fixed loop count so setup becomes negligible.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Go. Where you are unsure, say so.