Skip to content

Document how to investigate rollup performance issues in order to locate+report a bug #4295

Description

@kg

Documentation is

  • Missing
  • Needed
  • Confusing
  • Not sure?

Please Explain in Detail...

I'm trying to investigate a regression with rollup in my build pipeline where some changes to my JS have caused rollup build times to increase from ~5 seconds to ~78 (!) seconds. I eventually found --perf and once I got it working was able to use that to verify some of my measurements. Unfortunately, the timing data seems unreliable and also quite coarse-grained - for one file the BUILD timing lists 75320ms but none of the sub-items last more than a few hundred msec, so the rest of that time is just... not recorded. For the other file the time is reported but all under one plugin (dts - transform whatever that is - I didn't configure rollup, I'm just troubleshooting).

At present based on the information I have it's not clear to me where this issue should be reported, and the data I'm getting isn't precise/accurate enough for me to try and narrow down the cause or reduce it to a small reproduction case.

Your Proposal for Changes

Please expand on your issue template to describe what developers like me should do when looking to report a performance issue, and if possible provide a bit more info in the docs on how to use --perf to do so. It took a good amount of searching and experimenting to even figure out how to get timings - I only knew it was possible because I saw timings in an old report about a similar performance issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions