HomePhabricator

Preventing compiler optimizations in benchmarks without a memory fence

Description

Preventing compiler optimizations in benchmarks without a memory fence

Summary:

  • Added accumulators and checks on benchmarks so they won't get optimized out
  • Modified bench_scalar_split so it won't get optimized out

This is a backport of libsecp256k1 PR678

Test Plan:

ninja check-secp256k1
ninja bench-secp256k1

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Elichai Turkel <elichai.turkel@gmail.com>Authored on Oct 28 2019, 14:27
deadalnixCommitted on Mar 2 2020, 15:32
deadalnixPushed on Mar 2 2020, 15:32
Reviewer
Restricted Project
Differential Revision
D5374: Preventing compiler optimizations in benchmarks without a memory fence
Parents
rABCd4f3b328528e: README: add a section for test coverage
Branches
Unknown
Tags
Unknown