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

ndarray build time / compile time #723

Closed
bluss opened this issue Sep 20, 2019 · 4 comments
Closed

ndarray build time / compile time #723

bluss opened this issue Sep 20, 2019 · 4 comments

Comments

@bluss
Copy link
Member

bluss commented Sep 20, 2019

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.

@bluss
Copy link
Member Author

bluss commented 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).

@bluss bluss removed the performance label Sep 20, 2019
@max-sixty
Copy link
Contributor

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
Copy link
Member

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.

@bluss
Copy link
Member Author

bluss commented Sep 20, 2019

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

No branches or pull requests

3 participants