about summary refs log tree commit diff
path: root/users/grfn/emacs.d/snippets/rust-mode/benchmark
# -*- mode: snippet -*-
# name: benchmark
# uuid: benchmark
# key: bench
# condition: t
# --
#[bench]
fn ${1:benchmark_name}(b: &mut Bencher) {
   `%`b.iter(|| $0);
}