-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Controls for granular benchmarking #56
Comments
Which pieces are desired?
|
Probably all of those in addition to how long hyper itself takes for things like parsing. On Wed, Sep 24, 2014 at 8:35 PM, Sean McArthur [email protected]
|
I think we want the ability to measure all of the applicable properties in https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html . |
For reference:
|
I imagine checking the clock several times when you don't want it would cause slow down. I'm thinking these could be events that can receive closures to echoed anything. By default, there's no closure. So you only pay for what you use. |
For reference, my simple benchmark of
On my computer, the Hyper benchmark is 137,963ns, ±63387ns. So you'd have to check the clock 50 times to see a 1% increase. Is that acceptably low enough to do on each invocation (there are 21 timings listed in the W3C document, but several of them seem to be irrelevant (e.g. the DOM-related timings))? Of course, it makes sense to answer this question by taking real benchmarks of the timing code in Hyper, but that was slightly more work 😃 |
I'm interested because I'd like to implement HTTP archive output for Servo, which depends to an extent on being able to pull this information out of Hyper. If nobody works on this issue before I finish up the other parts of that task, I'd be interested on taking it on. But in the meantime, anyone else should feel free to claim it. |
Oh, that's not much time. I thought at some point someone told me that getting the date for the date header was showing up in profiles. |
Similar benchmarks show Perhaps it's the actual formatting step that's taking longer. That part would pretty easy to do only as-demanded. |
I would love to use hyper for HTTP load testing and would want these metrics as part of the results |
Closures or a Trait impl, a Trait impl might be nicer if your doing something like sending off the metrics gathered to another metrics recorder service |
I would love to be able to get access to more granular timing information as well for a project I'm working on. |
I believe the Tokio Trace proposal is relevant here. |
Any update on this? |
Downstream libraries should be able to easily profile requests.
The text was updated successfully, but these errors were encountered: