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); }