From b220dec43a8c378daf9ded017dfe8d8e2d85d773 Mon Sep 17 00:00:00 2001 From: pasta Date: Wed, 26 Nov 2025 14:35:30 -0600 Subject: [PATCH] fix: update BuildTestVectors call to adjust batch size based on output flag --- src/bench/bls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bench/bls.cpp b/src/bench/bls.cpp index 9199f1f33360..e6206d241d9f 100644 --- a/src/bench/bls.cpp +++ b/src/bench/bls.cpp @@ -255,7 +255,7 @@ static void BLS_Verify_Batched(benchmark::Bench& bench) std::vector sigs; std::vector msgHashes; std::vector invalid; - BuildTestVectors(bench.output() ? 1000 : 1, 10, pubKeys, secKeys, sigs, msgHashes, invalid); + BuildTestVectors(bench.output() ? 1000 : 1, bench.output() ? 10 : 1, pubKeys, secKeys, sigs, msgHashes, invalid); // Benchmark. size_t i = 0; @@ -311,7 +311,7 @@ static void BLS_Verify_BatchedParallel(benchmark::Bench& bench) std::vector sigs; std::vector msgHashes; std::vector invalid; - BuildTestVectors(bench.output() ? 1000 : 1, 10, pubKeys, secKeys, sigs, msgHashes, invalid); + BuildTestVectors(bench.output() ? 1000 : 1, bench.output() ? 10 : 1, pubKeys, secKeys, sigs, msgHashes, invalid); std::list>> futures;