depot/third_party/tvl/users/grfn/emacs.d/snippets/rust-mode/benchmark

10 lines
156 B
Text
Raw Normal View History

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