Skip to content

Commit 7682f55

Browse files
committed
Update performance.rs
1 parent ae3ada6 commit 7682f55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/string-offsets/benchmarks/performance.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ fn construction_benchmark(c: &mut Criterion) {
77
for size in [1000, 10000, 100000] {
88
let mut rng = rng();
99
// Generate random ascii input.
10-
let random_input: String = (0..size).map(|_| rng.random_range(32u8..128) as char).collect();
10+
let random_input: String = (0..size)
11+
.map(|_| rng.random_range(32u8..128) as char)
12+
.collect();
1113
group.throughput(criterion::Throughput::Bytes(random_input.len() as u64));
1214
group.bench_with_input(
1315
BenchmarkId::from_parameter(size),

0 commit comments

Comments
 (0)