diff options
Diffstat (limited to 'users/grfn/emacs.d/snippets/rust-mode/benchmark')
-rw-r--r-- | users/grfn/emacs.d/snippets/rust-mode/benchmark | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/users/grfn/emacs.d/snippets/rust-mode/benchmark b/users/grfn/emacs.d/snippets/rust-mode/benchmark new file mode 100644 index 000000000000..f1446923a0e4 --- /dev/null +++ b/users/grfn/emacs.d/snippets/rust-mode/benchmark @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: benchmark +# uuid: +# key: bench +# condition: t +# -- +#[bench] +fn ${1:benchmark_name}(b: &mut Bencher) { + `%`b.iter(|| $0); +} \ No newline at end of file |