-
Notifications
You must be signed in to change notification settings - Fork 121
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
Percentile Support #93
base: master
Are you sure you want to change the base?
Conversation
Calculate interpolted percentiles using the NIST method. This ensures that p0 == min, p50 == median, p100 == max.
To show percentile columns, use --benchmark-columns=p99.9. Requested columns are added to the flattened output dict for display. Percentile columns are only calculated and shown if requested. Cache perecntile results to avoid recalculation. Add usage note to documentation.
Here's what the output looks like with
|
This looks pretty good. I still need to look over the code a bit but there is one thing that makes me a bit wary: the fact that the pXX.X column only gets in the saved data if it's active in the display (via This would be a problem if the user doesn't save the data (via either |
I would love to hear some opinions on this problem. |
Storing the percentiles was one part I wasn't sure about. Perhaps a new |
So I've been thinking about this again, and I want this feature. But I was these stats to be always saved. @jdhardy Would you think people would ever want anything else besides p90, p95, p99, p99.9 and p99.99? |
*Possibly* p99.999. I've never seen anything else used around here, anyway.
Seems like that's enough to start with and see if anyone requests others.
…On Thu, Feb 8, 2018 at 3:03 PM, Ionel Cristian Mărieș < ***@***.***> wrote:
So I've been thinking about this again, and I want this feature. But I was
these stats to be always saved.
@jdhardy <https://github.com/jdhardy> Would you think people would ever
want anything else besides p90, p95, p99, p99.9 and p99.99?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGmdQ0SFDz7FFUxb7thjVTup4QBl1i5ks5tS31BgaJpZM4QWxt9>
.
|
Oh damn it's almost a year. So now I'm thinking about a compromise ... eg, always compute p90, p95, p99, p99.9 and p99.99 and compute and store on demand anything else. Tho it doesn't seem like anyone wants anything else other than p90, p95, p99, p99.9 and p99.99, so just remove the on-demand thing? What do you think @jdhardy? (just asking for opinion, not pr rework) |
I'm actually (finally) circling back on this in the next week or two. I'm fine with always doing p90/95/99/99.9/99.99 to start with and then seeing if anyone wants anything else. That should cover the vast majority of use cases. |
@jdhardy hey, you still wanna work on this? |
Yes, and when I get back from vacation next week I'll see when I can fit it
into my schedule.
…On Thu, Jan 3, 2019 at 10:42 AM Ionel Cristian Mărieș < ***@***.***> wrote:
@jdhardy <https://github.com/jdhardy> hey, you still wanna work on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGmdWPDplf1vsjucMautGLclo6Z4PVmks5u_k8SgaJpZM4QWxt9>
.
|
Yikes. I haven't had a chance to look at this for a while, and probably won't for a while longer (I'm no longer working on that project). Feel free to close it, and apologies for not being able to follow through. |
Fix #92 by adding support for calculating & displaying arbitrary percentiles, by using
--benchmark-columns=p99.9
. Only requested percentile columns are calculated and displayed. They are also preserved in CSV and JSON output formats if they are requested.Had some issues running tox tests, but the core variants all passed.