From 63e5fe11c9aa9788608b6c276585b0334ada729a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Tue, 11 Aug 2020 23:06:05 +0200 Subject: [PATCH] aquatic http protocol: delete obsoleted bench_request_from_path --- .../benches/bench_request_from_path.rs | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 aquatic_http_protocol/benches/bench_request_from_path.rs diff --git a/aquatic_http_protocol/benches/bench_request_from_path.rs b/aquatic_http_protocol/benches/bench_request_from_path.rs deleted file mode 100644 index ce4956d..0000000 --- a/aquatic_http_protocol/benches/bench_request_from_path.rs +++ /dev/null @@ -1,24 +0,0 @@ -use std::time::Duration; -use criterion::{black_box, criterion_group, criterion_main, Criterion}; - -use aquatic_http_protocol::request::Request; - - -static INPUT: &str = "/announce?info_hash=%04%0bkV%3f%5cr%14%a6%b7%98%adC%c3%c9.%40%24%00%b9&peer_id=-TR2940-5ert69muw5t8&port=11000&uploaded=0&downloaded=0&left=0&numwant=0&key=3ab4b977&compact=1&supportcrypto=1&event=stopped"; - - -pub fn bench(c: &mut Criterion) { - c.bench_function("request-from-path", |b| b.iter(|| - Request::from_http_get_path(black_box(INPUT)) - )); -} - -criterion_group!{ - name = benches; - config = Criterion::default() - .sample_size(1000) - .measurement_time(Duration::from_secs(180)) - .significance_level(0.01); - targets = bench -} -criterion_main!(benches); \ No newline at end of file