Skip to content

Performance impact of jsdom 23.2.0 #3659

@DoodleBobBuffPants

Description

@DoodleBobBuffPants

Basic info:

  • Node.js version: 21.4.0
  • jsdom version: 23.2.0

Minimal reproduction case

  • Vitest tests with jsdom 23.1.0 (mm:ss):
    • Without coverage: 3:30
    • With coverage: 5:30
  • Vitest tests with jsdom 23.2.0 (mm:ss):
    • Without coverage: 7:30
    • With coverage: 15:30

The hit to performance in 23.2.0 is quite significant, to the point that a handful of our unit tests doing no more than clicking and selecting using RTL are consistently timing out too now

I wanted to raise this as an issue as requested in the release notes for 23.2.0

How does similar code behave in browsers?

N/A

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