Skip to content

Commit b7320f3

Browse files
committed
bring back benchmark from the future
1 parent 9b3f2ea commit b7320f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch_benchmark_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func BenchmarkAllocsSearch(t *testing.B) {
265265
},
266266
})
267267

268-
for b.Loop() {
268+
for i := 0; i < b.N; i++ {
269269
s := c.Search()
270270
s.Index("foo")
271271
s.Query(&types.Query{
@@ -289,7 +289,7 @@ func BenchmarkAllocsSearch(t *testing.B) {
289289
},
290290
})
291291

292-
for b.Loop() {
292+
for i := 0; i < b.N; i++ {
293293
s := c.Search()
294294
s.Index("foo")
295295
s.Query(esdsl.NewMatchAllQuery())

0 commit comments

Comments
 (0)