From 66364a5e9d9d6add013f398c282afd01bd53b6de Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 20 Feb 2025 11:39:54 -0500 Subject: [PATCH] disable bench throughput thing --- benches/future_children.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benches/future_children.rs b/benches/future_children.rs index fcc4ed3..010393e 100644 --- a/benches/future_children.rs +++ b/benches/future_children.rs @@ -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)); });