pps 0.2.1

Search the PyPI for packages by name aka `pip search`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use scraper::{Html, Selector};
use pps;

fn bench_query() {
     let rt = tokio::runtime::Runtime::new().unwrap();
     rt.block_on(pps::query_pypi("gitlab".into(), 3)).unwrap();
}

fn criterion_benchmark(c: &mut Criterion) {
    c.bench_function("bench_query", |b| b.iter(|| bench_query()));
}

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