blob: 22f147b63390de175d1b98af310b08b6f0bb7307 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package testlist
import (
"fmt"
"testing"
)
func BenchmarkSimplefunc(b *testing.B) {
b.StopTimer()
b.StartTimer()
for i := 0; i < b.N; i++ {
_ = fmt.Sprint("Test for bench")
}
}
|