We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b3f2ea commit b7320f3Copy full SHA for b7320f3
elasticsearch_benchmark_test.go
@@ -265,7 +265,7 @@ func BenchmarkAllocsSearch(t *testing.B) {
265
},
266
})
267
268
- for b.Loop() {
+ for i := 0; i < b.N; i++ {
269
s := c.Search()
270
s.Index("foo")
271
s.Query(&types.Query{
@@ -289,7 +289,7 @@ func BenchmarkAllocsSearch(t *testing.B) {
289
290
291
292
293
294
295
s.Query(esdsl.NewMatchAllQuery())
0 commit comments