Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
khoover committed Sep 10, 2024
1 parent 85d916d commit 9b7421f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions benches/distance_transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ mod benches {
#[bench]
fn bench_chebyshev_distance_transform(b: &mut Bencher) {
let mut terrain = LocalRoomTerrain::new_from_bits(Box::new([0; 2500]));
b.iter(|| black_box(chebyshev_distance_transform_from_terrain(&*black_box(&mut terrain))));
b.iter(|| {
black_box(chebyshev_distance_transform_from_terrain(&*black_box(
&mut terrain,
)))
});
}

#[bench]
fn bench_manhattan_distance_transform(b: &mut Bencher) {
let mut terrain = LocalRoomTerrain::new_from_bits(Box::new([0; 2500]));
b.iter(|| black_box(manhattan_distance_transform_from_terrain(&*black_box(&mut terrain))));
b.iter(|| {
black_box(manhattan_distance_transform_from_terrain(&*black_box(
&mut terrain,
)))
});
}
}

0 comments on commit 9b7421f

Please sign in to comment.