5e30c3fe1b
Add snippets for async tests and benchmarks Change-Id: Ic1ad46c7f76b1e68c4043a13e821583195c661ab Reviewed-on: https://cl.tvl.fyi/c/depot/+/2353 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
10 lines
No EOL
156 B
Text
10 lines
No EOL
156 B
Text
# -*- mode: snippet -*-
|
|
# name: benchmark
|
|
# uuid:
|
|
# key: bench
|
|
# condition: t
|
|
# --
|
|
#[bench]
|
|
fn ${1:benchmark_name}(b: &mut Bencher) {
|
|
`%`b.iter(|| $0);
|
|
} |