mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Merge #19214: Auto-detect SHA256 implementation in benchmarks
addf18da95
Call SHA256AutoDetect in benchmark setup (Pieter Wuille) Pull request description: It seems `SHA256AutoDetect()` was not being called in benchmarks, making the numbers only reflect the naive implementation. Fix this by calling it in bench_bitcoin's setup. ACKs for top commit: fjahr: tested ACKaddf18da95
pstratem: ACKaddf18da95
laanwj: ACKaddf18da95
Tree-SHA512: 3ba4b068145942df1429bf5913e3f685511e6ebeae2c1a3f9b8ac0144f6db1c7df456f88f480a2129f3e1602e3bf6a39530bb96e2c74c03ddb19324cec6799c7
This commit is contained in:
commit
7ebc365047
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <bench/bench.h>
|
||||
|
||||
#include <crypto/sha256.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/system.h>
|
||||
|
||||
|
@ -35,6 +36,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
ArgsManager argsman;
|
||||
SetupBenchArgs(argsman);
|
||||
SHA256AutoDetect();
|
||||
std::string error;
|
||||
if (!argsman.ParseParameters(argc, argv, error)) {
|
||||
tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error);
|
||||
|
|
Loading…
Add table
Reference in a new issue