summaryrefslogtreecommitdiff
path: root/go-mode/benchmark
diff options
context:
space:
mode:
authorAlberto Luaces Fernández <aluaces@udc.es>2015-05-13 19:45:06 +0100
committerAlberto Luaces Fernández <aluaces@udc.es>2015-05-13 19:45:06 +0100
commitf4123b269fe5af6d04d68a643d16fea9fa388e2d (patch)
tree4361a69e833eaa18c49cad6bf594c9cddfcc6f89 /go-mode/benchmark
Import yasnippet-snippets_0~git20150512.orig.tar.gz
[dgit import orig yasnippet-snippets_0~git20150512.orig.tar.gz]
Diffstat (limited to 'go-mode/benchmark')
-rw-r--r--go-mode/benchmark10
1 files changed, 10 insertions, 0 deletions
diff --git a/go-mode/benchmark b/go-mode/benchmark
new file mode 100644
index 0000000..ef669a8
--- /dev/null
+++ b/go-mode/benchmark
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: benchmark
+# key: bench
+# contributor : @atotto
+# --
+func Benchmark$1(b *testing.B) {
+ for i := 0; i < b.N; i++ {
+ $0
+ }
+}