Skip to content

Cli tool to compare commits locallyΒ #1734

Description

@Nadrieril

Hi! I tend to work on performance-sensitive parts of the compiler so I check performance locally a lot. In the current setup this requires me to run a docker script and check a website page. It would make my life much easier if I could run say rustc-perf compare <commita> <commitb> instructions:u and get out the little table of relevant benchmark diffs. Would that be easy to implement?

Activity

  1. Kobzol commented on Oct 12, 2023

    @Kobzol
    Member

    Hi, you don't really have to run Docker, you can either just build the website locally (using npm run watch && cargo build -p site) or you can download a precompiled binary with the website (https://github.com/rust-lang/rustc-perf/releases).

    That being said, a basic CLI output wouldn't be a bad idea, we already have it for runtime benchmarks.

    It should be relatively easy to implement, either by modifying the behavior of bench_local, and adding output of the measured results, or by introducing a separate new command for this. The collector code was heavily refactored and running benchmarks from it in a new command should hopefully be relatively easy.

  2. added
    help wantedWe are looking for volunteers to take on this issue
    on Jun 10, 2024
  3. added a commit that references this issue on Jun 22, 2024
  4. added a commit that references this issue on Jun 22, 2024
  5. s7tya commented on Sep 16, 2024

    @s7tya
    Contributor

    I think we can close this because the bench_cmp command is implemented and it's ported into the bootstrap. Of course we should improve the functionality though.

  6. Kobzol commented on Sep 16, 2024

    @Kobzol
    Member

    Agreed πŸ‘

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

    help wantedWe are looking for volunteers to take on this issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions