This commit is contained in:
2025-02-20 12:14:23 -05:00
parent e1bae4e43b
commit 7446cf90f6
2 changed files with 9 additions and 9 deletions

View File

@@ -11,10 +11,10 @@ fn extend_layers_test(depth: usize, expire: usize) {
fn criterion_benchmark(c: &mut Criterion) {
const EXPIRE: usize = 4;
let mut group = c.benchmark_group(format!("extend_layers (expire {})", EXPIRE));
group.measurement_time(Duration::from_secs(60));
group.sample_size(10000);
group.measurement_time(Duration::from_secs(10));
group.sample_size(1000);
for (depth, expire) in (2..6).zip([EXPIRE].into_iter().cycle()) {
for (depth, expire) in (4..8).zip([EXPIRE].into_iter().cycle()) {
// 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| {