1 // Copyright 2023 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // WARNING: Please avoid updating this file. If this file needs to be updated,
6 // then a new devirt.pprof file should be generated:
8 // $ cd $GOROOT/src/cmd/compile/internal/test/testdata/pgo/devirtualize/
9 // $ go mod init example.com/pgo/devirtualize
10 // $ go test -bench=. -cpuprofile ./devirt.pprof
17 "example.com/pgo/devirtualize/mult.pkg"
20 func BenchmarkDevirt(b *testing.B) {
28 Exercise(b.N, a1, a2, m1, m2)