You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just wanted to share a neat graph. (This is a new feature in cargo - run with -Ztimings and it outputs this!)
HTML build time for ndarray + deps I used a rayon benchmark as testcase, so it's a release compile, and my laptop struggles a bit, so it's slowish :-)
You can set the min unit time to 1 second to get an easier to overview time chart of the build.
Here we can look at how the build time of the crate is broken down, obviously we only decide about the direct deps and not transitive deps of any crates we don't control.
Very cool. This feature is really helpful for figuring out how to reduce build times. I noticed that it also shows the edges of the dependency graph associated with a crate if you hover over that crate. I think it's interesting that the vast majority of the time spent compiling ndarray itself is in things other than code generation; it would be helpful to know more specifically where that time is spent.
Activity
bluss commentedon Sep 20, 2019
Also, look at that sweet pipelining (when cargo starts building the next crate in the chain before the codegen of the dependency is finished).
max-sixty commentedon Sep 20, 2019
Awesome chart. Would it be worth looking at the non-dev dependencies only too? e.g. I see quickcheck uses up a bunch of time there
jturner314 commentedon Sep 20, 2019
Very cool. This feature is really helpful for figuring out how to reduce build times. I noticed that it also shows the edges of the dependency graph associated with a crate if you hover over that crate. I think it's interesting that the vast majority of the time spent compiling
ndarrayitself is in things other than code generation; it would be helpful to know more specifically where that time is spent.bluss commentedon Sep 20, 2019
Acrichto wrote about this today too https://internals.rust-lang.org/t/exploring-crate-graph-build-times-with-cargo-build-ztimings/10975