Bring the whole workspace into compliance with the repo's rustfmt config (edition 2024, max_width 100, use_small_heuristics = "Max"), which had drifted across many crates. Pure formatting — no logic changes; `cargo fmt --check` is now clean and `cargo build --workspace` is green.
13 lines
441 B
Rust
13 lines
441 B
Rust
use lawsynth_bundle::canonical_entry_order;
|
|
use std::{hint::black_box, time::Instant};
|
|
|
|
fn main() {
|
|
let paths = (0..1_000).map(|i| format!("laws/{i:04}/equation.bin")).collect::<Vec<_>>();
|
|
let started = Instant::now();
|
|
let mut entries = 0;
|
|
for _ in 0..1_000 {
|
|
entries += black_box(canonical_entry_order(paths.clone()).unwrap()).len();
|
|
}
|
|
println!("canonicalized {entries} paths in {:?}", started.elapsed());
|
|
}
|