Home GnuPG

tests/bench-slope: improve CPU frequency auto-detection

Description

tests/bench-slope: improve CPU frequency auto-detection

* configure.ac (gcry_cv_have_asm_volatile_memory): Check also if
assembly memory barrier with input/output register is supported.
* tests/bench-slope.c (auto_ghz_bench): Change to use base operation
that takes two CPU cycles and unroll loop by 1024 operations.

CPU frequency is now correctly detected on AWS Graviton CPU (2.3Ghz).

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jul 23 2020, 5:21 PM
Parents
rC886120f33bd3: Enable jitter entropy also on non-x86 architectures
Branches
Unknown
Tags
Unknown