pleco-rs / Pleco

A Rust-based re-write of the Stockfish Chess Engine

Home Page:https://crates.io/crates/pleco

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switch to Criterion for Benchmarking.

sfleischman105 opened this issue · comments

Right now, we use the standard libraries benchmarking tool for benchmarking.

Despite it's easy of use, there are a couple drawbacks for using it:

  • No customization on the number of runs
  • Output is limited to a number + estimated degree of confidence

It would be beneficial to switch the benchmarks to Criterion.rs, to get more detailed analysis of the benchmarks, alongside additional benchmark customization.

May I note, this is especially important as it gives the ability to benchmark with a setup stage in-between runs, ala Bencher::iter_with_setup.

Closed with #95