]>
git.proxmox.com Git - rustc.git/blob - vendor/url/benches/parse_url.rs
6 use bencher
::{black_box, Bencher}
;
10 fn short(bench
: &mut Bencher
) {
11 let url
= "https://example.com/bench";
13 bench
.bytes
= url
.len() as u64;
14 bench
.iter(|| black_box(url
).parse
::<Url
>().unwrap());
17 benchmark_group
!(benches
, short
);
18 benchmark_main
!(benches
);