karma-runner/karma

Performance issue with serving files in Karma 1.4

Open

#2538 opened on Jan 16, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (11,918 stars) (1,703 forks)batch import
help wantedneeds: investigation

Description

Expected behaviour

I have an Ext JS project with over 500 files. With karma 1.3, it was serving all these files in around 3-5s.

karma13

Actual behaviour

With Karma 1.4 and the exact same files, it was taking over 80 seconds to serve these files, which results in a timeout before the tests can even run.

karma14

Environment Details

  • Karma version (output of karma --version): 1.4

Steps to reproduce the behaviour

  1. Simply run npm test with Karma 1.3 and 1.4

Contributor guide