google / benchmark

A microbenchmark support library
Apache License 2.0
8.59k stars 1.57k forks source link

CycleClock: Add support for Alpha architecture #1753

Closed thesamesam closed 4 months ago

thesamesam commented 4 months ago

This uses the native RPCC instruction, which comes with a caveat. The PCC (Program Cycle Register) tick counter on Alpha is a 32-bit unsigned integer, which means that it overflows every ~4-ish seconds, depending on clock speed. Therefore this is only safe to use for small measurements. This is the same implementation used in fftw.

LebedevRI commented 4 months ago

(generally looks fine to me, thank you)

LebedevRI commented 4 months ago

@thesamesam thank you!

thesamesam commented 4 months ago

Thank you all!