โฑ๏ธBenchmarking WorkshopWORKSHOP
1
2
3
4

Step 1

Write a `BenchmarkRepeat(b *testing.B)` function that benchmarks `strings.Repeat("x", 100)` in a `b.N` loop. Include the `testing` import. Add a `main()` that prints `"run: go test -bench=. -benchmem"` so the Playground can execute the file.

โŒ˜ Enter (Mac) ยท Ctrl+Enter (Win/Linux)