about summary refs log blame commit diff
path: root/users/grfn/emacs.d/snippets/rust-mode/benchmark
blob: 9ec43075380bf7d61b46c25f24b081c2842446b4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                       
                 






                                         
# -*- mode: snippet -*-
# name: benchmark
# uuid: benchmark
# key: bench
# condition: t
# --
#[bench]
fn ${1:benchmark_name}(b: &mut Bencher) {
   `%`b.iter(|| $0);
}