performance progress tracking
This commit is contained in:
parent
f1ec0a08d9
commit
e66771dba9
16 changed files with 2816 additions and 121 deletions
15
benches/eval.rs
Normal file
15
benches/eval.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use chess_engine::board::Board;
|
||||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
use chess_engine::eval::basic::evaluate_board;
|
||||
|
||||
fn run_eval_benchmark(c: &mut Criterion) {
|
||||
let board = Board::from_fen("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1");
|
||||
c.bench_function("standard_board_evaluation", |b| {
|
||||
b.iter(|| {
|
||||
evaluate_board(&board);
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
criterion_group!(benches, run_eval_benchmark);
|
||||
criterion_main!(benches);
|
||||
Loading…
Add table
Add a link
Reference in a new issue