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