Skip to content

ndarray build time / compile time #723

Closed

Description

@bluss

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.

Activity

  1. bluss commented on Sep 20, 2019

    @bluss
    MemberAuthor

    Also, look at that sweet pipelining (when cargo starts building the next crate in the chain before the codegen of the dependency is finished).

  2. max-sixty commented on Sep 20, 2019

    @max-sixty
    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

  3. jturner314 commented on Sep 20, 2019

    @jturner314
    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions