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;