disable bench throughput thing

This commit is contained in:
Simon Gardling 2025-02-20 11:39:54 -05:00
parent 16e453ddc9
commit 66364a5e9d
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -1,4 +1,4 @@
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
use othello::{board::Board, future_moves::FutureMoves, piece::Piece};
use std::time::Duration;
@ -15,7 +15,8 @@ fn criterion_benchmark(c: &mut Criterion) {
group.sample_size(10000);
for (depth, expire) in (2..6).zip([EXPIRE].into_iter().cycle()) {
group.throughput(Throughput::Elements(depth as u64));
// TODO! maybe somehow get throughput from `extend_layers`?
// group.throughput(Throughput::Elements(depth as u64));
group.bench_with_input(BenchmarkId::from_parameter(depth), &depth, |b, depth| {
b.iter(|| extend_layers_test(*depth, expire));
});