Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumGobenchmarksSingle-choice MCQ

A benchmark does expensive one-time setup before the measured loop. Which call ensures the setup time is excluded from the reported per-operation time?

func BenchmarkParse(b *testing.B) { data := buildHugeInput() // expensive ____________ for i := 0; i < b.N; i++ { Parse(data) } }