We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 659bc04 commit 0e700c2Copy full SHA for 0e700c2
src/reflect/all_test.go
@@ -1944,17 +1944,13 @@ func BenchmarkCall(b *testing.B) {
1944
1945
type myint int64
1946
1947
-type inccer interface {
1948
- inc()
1949
-}
1950
-
1951
func (i *myint) inc() {
1952
*i = *i + 1
1953
}
1954
1955
func BenchmarkCallMethod(b *testing.B) {
1956
b.ReportAllocs()
1957
- z := inccer(new(myint))
+ z := new(myint)
1958
1959
v := ValueOf(z.inc)
1960
for i := 0; i < b.N; i++ {
0 commit comments