aboutsummaryrefslogtreecommitdiff
path: root/template/go/base-test-bench.go
blob: 0960dc8b3165f86288361ca6242cdb1e04c0598f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package {{_expr_:substitute('{{_name_}}', '_test', '', '')}}

import (
	"testing"
)

func BenchmarkSimple(b *testing.B) {
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		{{_cursor_}}
	}
}
{{_filter_:benchmark}}