Fixes #74984.
Fixes #74983.
Change-Id: I011c66c2005bc4d92f1d17f1f8ce88158634f71f
Reviewed-on: https://go-review.googlesource.com/c/go/+/695476
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
fn(b, pages)
})
}
+ if len(cacheSizes) == 0 {
+ return
+ }
ramPages := int(cacheSizes[len(cacheSizes)-1]*3/2) / gc.PageSize
b.Run(fmt.Sprintf("cache=ram/pages=%d", ramPages), func(b *testing.B) {
fn(b, ramPages)