This commit is contained in:
Ali MJ Al-Nasrawy 2022-03-22 21:57:35 +03:00
parent 2b8ec676d3
commit 001ef47633
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ fn compare_quoters(c: &mut Criterion) {
let mut group = c.benchmark_group("Compare Quoters"); let mut group = c.benchmark_group("Compare Quoters");
let quoter = actix_router::Quoter::new(b"", b""); let quoter = actix_router::Quoter::new(b"", b"");
let path_quoted = (0..=0x7f).map(|c| format!("%{:02X}", c)).collect::<String>(); let path_quoted = (0..=0x7f)
.map(|c| format!("%{:02X}", c))
.collect::<String>();
let path_unquoted = ('\u{00}'..='\u{7f}').collect::<String>(); let path_unquoted = ('\u{00}'..='\u{7f}').collect::<String>();
group.bench_function("quoter_unquoted", |b| { group.bench_function("quoter_unquoted", |b| {