Start from scratch with a new simulation #1

Merged
max merged 31 commits from restart into main 2025-04-25 15:03:09 +02:00
Showing only changes of commit 47f75563ae - Show all commits

View File

@ -216,5 +216,17 @@ fn constrictor(c: &mut Criterion) {
}
}
criterion_group!(benches, standard, constrictor);
fn clone(c: &mut Criterion) {
let request = create_standard_start_request([
Coord { x: 1, y: 1 },
Coord { x: 9, y: 1 },
Coord { x: 1, y: 9 },
Coord { x: 9, y: 9 },
]);
let board = Board::from(&request);
c.bench_function("clone", |b| b.iter(|| board.clone()));
}
criterion_group!(benches, standard, constrictor, clone);
criterion_main!(benches);