nh2 / haskell-cpu-instruction-counter

Measuring CPU instructions in Haskell using Linux Performance Counters
MIT License
83 stars 5 forks source link

Compatibility with GHC-7.8 #1

Closed sjakobi closed 6 years ago

sjakobi commented 6 years ago

I'm not sure why I couldn't get the test to run with GHC-7.6.3 and older.

Even though I set CAP_SYS_ADMIN, the tests fail with

tests: perf_event_open: permission denied (Permission denied)
sjakobi commented 6 years ago

Also the test result is hard to believe:

I get 2247389 vs. only 40146 with v7.10.3.

sjakobi commented 6 years ago

Ah, setting perf_event_paranoid to 2 worked:

Result for 7.6.3: 815698 For 7.4.2: 816631

A bit much, I think.

pepeiborra commented 6 years ago

Could we get a release with this change ?

nh2 commented 6 years ago

Thanks!