Skip to content

50-110% compilation time regressions due to miri  #48846

Closed
@oli-obk

Description

@oli-obk

It's not clear yet whether mir interpretation is the culprit or some changes that crept into the same PR.

Perf data: http://perf.rust-lang.org/compare.html?start=cdcca786468a71375584bb48e3093790c91084f7&end=c90f68224b069f5bb2a80e30e2737e4bb17c1466&stat=instructions:u

cc @nikomatsakis @michaelwoerister

Important regressions to investigate

  • tuple-stress | avg: 35.0% | min: 9.8% | max: 109.4%
    • clean-incremental is a >100% hit! The rest are small.
  • tuple-stress-opt | avg: 45.9% | min: 23.1% | max: 109.1%
    • same, clean-incremental is a >100% hit!
  • encoding-opt | avg: 48.9% | min: 7.0% | max: 97.6%
    • clean incremental-opt
    • patched incremental: println-opt
  • encoding | avg: 56.3% | min: 18.1% | max: 94.9%
    • clean is ~ 20%, as is baseline incremental
    • incremental cases are almost 100%
  • coercions-opt | avg: 46.9% | min: 31.8% | max: 74.6%
    • pretty universally bad, though incremental hurts worse
  • coercions | avg: 37.0% | min: 24.3% | max: 66.6%
    • pretty universally bad, though incremental hurts worse
  • html5ever-opt | avg: 18.3% | min: 5.6% | max: 41.3%
    • incremental
  • inflate | avg: 29.4% | min: 1.3% | max: 40.4%
    • universally bad, though incremental hurts worse
  • regex-opt | avg: -0.2% | min: -18.0% | max: 4.7%
    • patched incremental: byte frequencies-opt
  • script-servo-opt | avg: 4.8% | min: 0.7% | max: 12.1%
    • clean incremental-opt
  • script-servo | avg: 6.0% | min: 1.7% | max: 11.6%
    • clean incremental
  • inflate-opt | avg: 7.7% | min: 1.2% | max: 11.6%
    • incremental cases primarily

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)C-enhancementCategory: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-compiler-performanceWorking group: Compiler Performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions