| Server IP : 217.160.0.212 / Your IP : 216.73.217.21 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/go/src/cmd/compile/internal/test/testdata/pgo/inline/ |
Upload File : |
// Copyright 2022 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.
// WARNING: Please avoid updating this file. If this file needs to be updated,
// then a new inline_hot.pprof file should be generated:
//
// $ cd $GOROOT/src/cmd/compile/internal/test/testdata/pgo/inline/
// $ go test -bench=. -cpuprofile ./inline_hot.pprof
package main
import "testing"
func BenchmarkA(b *testing.B) {
benchmarkB(b)
}
func benchmarkB(b *testing.B) {
for i := 0; true; {
A()
i = i + 1
if i >= b.N {
break
}
A()
i = i + 1
if i >= b.N {
break
}
A()
i = i + 1
if i >= b.N {
break
}
A()
i = i + 1
if i >= b.N {
break
}
A()
i = i + 1
if i >= b.N {
break
}
A()
i = i + 1
if i >= b.N {
break
}
}
}