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









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