blob: 610a2d28cb37736cf68fd1b3f16da9e68f8ef5ec [file] [log] [blame]
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package bench
import "testing"
func BenchmarkFindAllImplementations(b *testing.B) {
env := sharedEnv(b)
env.OpenFile("internal/imports/mod.go")
loc := env.RegexpSearch("internal/imports/mod.go", "initAllMods")
env.Await(env.DoneWithOpen())
b.ResetTimer()
for i := 0; i < b.N; i++ {
env.Implementations(loc)
}
}