Skip to content

Commit 199ac79

Browse files
Merge #7013: fix: update BuildTestVectors call to adjust batch size based on output flag
b220dec fix: update BuildTestVectors call to adjust batch size based on output flag (pasta) Pull request description: ## Issue being fixed or feature implemented see #7011 ## What was done? ## How Has This Been Tested? runs locally; but I didn't reproduce the failure, likely due to different compilation flags. Even with undefined sanitizer, I couldn't reproduce. ## Breaking Changes ## Checklist: _Go over all the following points, and put an `x` in all the boxes that apply._ - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: UdjinM6: utACK b220dec Tree-SHA512: 5cfb630c576abf7f019348fd4acd878ab44485bd0b658521660259ed1ea0570b46eafbbd783bc58f2b707d549f6daf74e1c8f16a636b597d1c3e9aab386f5722
2 parents a11e73e + b220dec commit 199ac79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bench/bls.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static void BLS_Verify_Batched(benchmark::Bench& bench)
255255
std::vector<CBLSSignature> sigs;
256256
std::vector<uint256> msgHashes;
257257
std::vector<bool> invalid;
258-
BuildTestVectors(bench.output() ? 1000 : 1, 10, pubKeys, secKeys, sigs, msgHashes, invalid);
258+
BuildTestVectors(bench.output() ? 1000 : 1, bench.output() ? 10 : 1, pubKeys, secKeys, sigs, msgHashes, invalid);
259259

260260
// Benchmark.
261261
size_t i = 0;
@@ -311,7 +311,7 @@ static void BLS_Verify_BatchedParallel(benchmark::Bench& bench)
311311
std::vector<CBLSSignature> sigs;
312312
std::vector<uint256> msgHashes;
313313
std::vector<bool> invalid;
314-
BuildTestVectors(bench.output() ? 1000 : 1, 10, pubKeys, secKeys, sigs, msgHashes, invalid);
314+
BuildTestVectors(bench.output() ? 1000 : 1, bench.output() ? 10 : 1, pubKeys, secKeys, sigs, msgHashes, invalid);
315315

316316
std::list<std::pair<size_t, std::future<bool>>> futures;
317317

0 commit comments

Comments
 (0)