tangled
alpha
login
or
join now
tulkdan.dev
/
Languages
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
:sparkles: (Go) writing benchmark for iteration funcion
tulkdan.dev
2 years ago
8040fb8a
2537104d
options
unified
split
Changed files
+6
Go
iteration
repeat_test.go
+6
Go/iteration/repeat_test.go
···
10
10
t.Errorf("expected %q but got %q", expected, repeated)
11
11
}
12
12
}
13
13
+
14
14
+
func BenchmarkRepeat(b *testing.B) {
15
15
+
for i := 0; i < b.N; i++ {
16
16
+
Repeat("a")
17
17
+
}
18
18
+
}