simplify new benchmark

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
This commit is contained in:
Ignacio Hagopian 2021-01-03 15:09:27 -03:00 committed by Daniel Martí
parent 6e7a43135b
commit 9bbaa1854a
1 changed files with 1 additions and 5 deletions

View File

@ -1944,17 +1944,13 @@ func BenchmarkCall(b *testing.B) {
type myint int64
type inccer interface {
inc()
}
func (i *myint) inc() {
*i = *i + 1
}
func BenchmarkCallMethod(b *testing.B) {
b.ReportAllocs()
z := inccer(new(myint))
z := new(myint)
v := ValueOf(z.inc)
for i := 0; i < b.N; i++ {