10000 Tests are slow · Issue #399 · immutable-js/immutable-js · GitHub
[go: up one dir, main page]

Skip to content
Tests are slow #399
Closed
Closed
@davidaurelio

Description

@davidaurelio

The test suite runs rather slow, and I was wondering whether it is possible to speed it up.

I’ve tested different variants on MBPs from 2010 and 2008 (sorry, don’t have more recent hardware available atm):

CPU current state no typescript jasmine instead of jest, no typescript
Core2Duo 4m20.332s 0m51.636s 0m27.554s
i7 (2010) 2m1.904s 0m24.786s 0m23.579s
  • The biggest offender is TypeScript, so the first question is: Do the tests really need to use typescript?
  • The QuickCheck-style tests (with jasmine-check) take their time. I think it might be worth considering moving those to a separate suite. That way, there’d be a really fast running test suite that gives quick feedback (< 5 seconds) during development, and the jasmine-check-suite that can be run on occasion and by CI.
  • I don’t know why jest is slow on old hardware, but I guess that matters only to me when working on my ancient machine.

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

      0