Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report quartiles #165

Open
pkkm opened this issue Oct 17, 2017 · 2 comments
Open

Report quartiles #165

pkkm opened this issue Oct 17, 2017 · 2 comments

Comments

@pkkm
Copy link

pkkm commented Oct 17, 2017

It would be really useful if Criterion reported quartiles (i.e. the 25th percentile, median and 75th percentile) of the execution time in its terminal output. Unlike the mean and least squares regression, quartiles are fairly insensitive to outliers, so they're good for noisy benchmark data (e.g. due to using a web browser while benchmarking).

@treeowl
Copy link

treeowl commented Jan 30, 2018

I thought this too. But I'm not sure it actually makes much sense. You'd have to measure CPU time separately for each operation. I don't know that it has a high enough resolution to be meaningful. Furthermore, you'd need to record all those measurements to be able to calculate the quartiles; the variable overhead of that recording seems likely to be a significant source of noise.

@ocramz
Copy link
Contributor

ocramz commented Mar 17, 2018

@pkkm @treeowl you could use tdigest for this: http://hackage.haskell.org/package/tdigest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants