We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae3ada6 commit 7682f55Copy full SHA for 7682f55
crates/string-offsets/benchmarks/performance.rs
@@ -7,7 +7,9 @@ fn construction_benchmark(c: &mut Criterion) {
7
for size in [1000, 10000, 100000] {
8
let mut rng = rng();
9
// Generate random ascii input.
10
- let random_input: String = (0..size).map(|_| rng.random_range(32u8..128) as char).collect();
+ let random_input: String = (0..size)
11
+ .map(|_| rng.random_range(32u8..128) as char)
12
+ .collect();
13
group.throughput(criterion::Throughput::Bytes(random_input.len() as u64));
14
group.bench_with_input(
15
BenchmarkId::from_parameter(size),
0 commit comments