diff options
| author | Fuwn <[email protected]> | 2021-08-21 06:14:16 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-08-21 06:14:16 +0000 |
| commit | 192745305bf5afe1a07bf504b3dd44eb83ffbf0e (patch) | |
| tree | 218493e35aab514289f8d2ec08dd20600a11fc20 /benches | |
| parent | fix(nitrous): socks4h being used instead of socks4 (diff) | |
| download | nitrous-192745305bf5afe1a07bf504b3dd44eb83ffbf0e.tar.xz nitrous-192745305bf5afe1a07bf504b3dd44eb83ffbf0e.zip | |
fix(check): use http if http
Diffstat (limited to 'benches')
| -rw-r--r-- | benches/bench.rs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/benches/bench.rs b/benches/bench.rs index 5a432c3..454bb1d 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -4,17 +4,19 @@ #[macro_use] extern crate criterion; -use rand::Rng; use criterion::Criterion; +use rand::Rng; fn bench_generate(c: &mut Criterion) { - c.bench_function("generate", |b| b.iter(|| { - rand::thread_rng() - .sample_iter(rand::distributions::Alphanumeric) - .take(16) - .map(char::from) - .collect::<String>() - })); + c.bench_function("generate", |b| { + b.iter(|| { + rand::thread_rng() + .sample_iter(rand::distributions::Alphanumeric) + .take(16) + .map(char::from) + .collect::<String>() + }) + }); } criterion_group!(benches, bench_generate); |