diff --git a/iteration/iter_test.go b/iteration/iter_test.go index fd7d5e6..47e82cb 100644 --- a/iteration/iter_test.go +++ b/iteration/iter_test.go @@ -10,3 +10,9 @@ func TestRepeat(t *testing.T) { t.Errorf("expected %q but got %q", expected, repeated) } } + +func BenchmarkRepeat(b *testing.B) { + for i := 0; i < b.N; i++ { + Repeat("a") + } +}