nh2 / nh2/haskell-cpu-instruction-counter

Integrate with criterion?

Open
#3 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
83
Forks
5
PR merge metrics
No merged PRs in 30d

Description

It seems as though this both would complement and be improved by integration into criterion:
- instruction counts as regression would be validated by criterion timing
- a timing regression combined with no increase in instr count would be a really useful thing to know (e.g. it might point to a space leak)
- standalone timing tests like the one in the example in the README here are fraught due to compiler optimizations; criterion is meant to solve this

What are your thoughts? I suppose it would need to be conditional on linux OS and be optional due to the permissions issues you mention

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.