haskell / criterion

A powerful but simple library for measuring the performance of Haskell code.
http://www.serpentine.com/criterion
BSD 2-Clause "Simplified" License
501 stars 86 forks source link

Support non-Darwin, non-Linux, aarch64 platforms #282

Closed depressed-pho closed 4 months ago

depressed-pho commented 4 months ago

We can read the cntvct_el0 register to observe the CPU clock. It is a single instruction and has barely any overhead.

RyanGlScott commented 4 months ago

I've uploaded criterion-measurement-0.2.2.0 to Hackage with these changes.