Install yasnippet and vala-snippets packages
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# -*- 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
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user