about summary refs log tree commit diff
path: root/users/glittershark/emacs.d/snippets/rust-mode/benchmark
blob: f1446923a0e4714444d6aaad1d3dbd822218f842 (plain) (blame)
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);
}