Skip to content

measure NLL performance on perf #49026

@nikomatsakis

Description

@nikomatsakis

It would be great to be tracking NLL performance on perf.rust-lang.org. I'm not entirely sure the best way to go about this. I've been tracking NLL perf on the syn benchmark specifically, but I'd obviously like to also test a broader set.

Three alternatives:

  • Add patches to select benchmarks on perf that add #![feature(nll)].
    • Incremental ought to ensure that we rebuild what needs to be rebuilt in this case; I'm a bit wary in that I'm not sure exactly what that set will be, but it ought to include at least MIR borrowck.
  • Clone the benchmarks and add #![feature(nll)] into the lib.rs
    • Thus we would have a distinct syn-nll benchmark, for example
  • Just add a new NLL mode
    • Similar to -opt, consider running all benchmarks with NLL enabled using RUSTFLAGS
    • This might fail for some benchmarks, not sure, but hopefully not

I'm sort of leaning towards the last one, but I'd love to get feedback, as well as advice from @Mark-Simulacrum on how to implement whichever route we choose.

cc @rust-lang/wg-compiler-performance @rust-lang/wg-compiler-nll @Mark-Simulacrum

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.I-compiletimeIssue: Problems and improvements with respect to compile times.NLL-performantWorking towards the "performance is good" goalT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions