You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// BenchmarkCheck exercises the §33 targets on a synthetic tree: many code
// files with one def each and docs citing them. It is a benchmark, not a
// gate; run `go test -bench Check -benchmem .` to read the numbers.
func BenchmarkCheck(b *testing.B) {
for _, n := range []int{100, 1000} {
fsys := fstest.MapFS{}
for i := 0; i < n; i++ {
fsys[fmt.Sprintf("internal/p%d/f.go", i)] = &fstest.MapFile{Data: []byte(fmt.Sprintf("package p\n\n// ds:def id=fn%d-a2b6f8jk\nfunc F%d() int {\n\treturn %d\n}\n", i, i, i))}