uriparse 0.6.4

A URI parser including relative references
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[macro_use]
extern crate criterion;
extern crate uriparse;

use criterion::Criterion;
use std::convert::TryFrom;
use uriparse::URIReference;

fn parse_benchmark(c: &mut Criterion) {
    let uri = "http://user:pass@192.168.1.1:8080/this/is/a/test/path?thisis=aquery#thisisafragment";

    c.bench_function("parse URI reference", move |b| {
        b.iter(|| URIReference::try_from(uri).unwrap())
    });
}

criterion_group!(benches, parse_benchmark);
criterion_main!(benches);