HomePhabricator

Call SHA256AutoDetect in benchmark setup

Description

Call SHA256AutoDetect in benchmark setup

Summary:

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.

This is a backport of core#19214

Test Plan:
ninja bench-bitcoin

I don't see a significant difference in the SHA256 becnhmarks before or
after this commit.

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D10004

Details

Provenance
Pieter Wuille <pieter@wuille.net>Authored on Jun 8 2020, 18:24
PiRKCommitted on Sep 1 2021, 12:02
PiRKPushed on Sep 1 2021, 12:02
Reviewer
Restricted Project
Differential Revision
D10004: Call SHA256AutoDetect in benchmark setup
Parents
rABCcbd256fb3562: walletdb: Add MakeBatch function to BerkeleyDatabase and use it
Branches
Unknown
Tags
Unknown