pq-code-package / mlkem-native

High-assurance, high-performance ML-KEM implementation for mobile, pc, and server targets
https://pq-code-package.github.io/mlkem-native/dev/bench/
Apache License 2.0
11 stars 9 forks source link

Bench: Use PMU instead of PERF for x86_64 benchmarking #421

Closed hanno-becker closed 4 days ago

hanno-becker commented 4 days ago

Benchmarking on x86_64 instances using perf seems less accurate than using rdtsc. This PR (a) adds support for PMU_CYCLES on x86_64 systems, and (b) changes the CI to use rdtsc-based cycle counting for all x86_64-based benchmarks. See the commit messages for a bit more detail.