dotfiles/.emacs.d/snippets/go-mode/benchmark

11 lines
155 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
# -*- mode: snippet -*-
# name: benchmark
# key: bench
# contributor : @atotto
# --
func Benchmark$1(b *testing.B) {
for i := 0; i < b.N; i++ {
$0
}
}