diff --git a/bench_iteration_test.go b/bench_iteration_test.go index 39445b0..fe21b3d 100644 --- a/bench_iteration_test.go +++ b/bench_iteration_test.go @@ -1,6 +1,7 @@ package goquery import ( + "fmt" "testing" ) @@ -31,7 +32,7 @@ func BenchmarkMap(b *testing.B) { sel := DocW().Find("td") f := func(i int, s *Selection) string { tmp++ - return string(tmp) + return fmt.Sprintf("%d", tmp) } b.StartTimer() for i := 0; i < b.N; i++ {