-
Notifications
You must be signed in to change notification settings - Fork 150
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
webrender_api incremental benchmark #312
Comments
My measurements:
|
The 5692 lines of rust code in webrender_api expand to 85511 with |
I'm not sure if I'd say it's reasonable but it seems realistic perhaps. I'm not entirely sure on what data is being put into "Expansion", would need to drill a bit more into it. |
Just taking a quick look through it looks like the majority of the expansion is caused by serde |
Note to self: in rustc-perf parlance, this is a "CleanIncr" build of the webrender_api crate. The |
I've done some profiling. There is room for some improvement, but I don't see much scope for drastic wins. E.g. with a bit of effort I can envisage a 10% improvement. rust-lang/rust#59476 is a first, small step. |
rust-lang/rust#59507 is a bigger improvement, saving over 5%. Profiling shows that the most obvious remaining source of inefficiency is libproc_macro's buffer for communicating between client and server. |
I opened a rust issue to track the rustc changes. We can probably close this. We could consider if we want to add this (or a similar expansion stress test) to the benchmark suite. |
@jrmuizel tells me that:
takes 8s on the second cargo check, and it would be good to measure it as well.
As of this writing, the current HEAD on webrender is aa73c6a18.
The text was updated successfully, but these errors were encountered: