my-emacs-d/elpa/yasnippet-20160924.2001/snippets/go-mode/parallel_benchmark
2016-10-20 10:27:10 +02:00

13 lines
204 B
Plaintext

# -*- mode: snippet -*-
# name: parallel_benchmark
# key: parbench
# contributor : @kostya-sh
# --
func Benchmark$1(b *testing.B) {
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
$0
}
})
}