-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slow (>1 minute) start up time when pointing to directory containing 15 files #1329
Comments
Could you provide timing details? How many files are in the other directories? Could this be related to #1288? |
i just timed it at 3m (ouch)... i would be happy to instrument for more details if anyone can provide a specific technique to use. here are some relevant file counts:
if i point to a specific file, it starts almost immediately, e.g:
fwiw, i typically run with the |
That'd be great. Could you time how long this
Though that doesn't suggest it's a helper problem. Perhaps try with |
hi mark, i had some trouble attempting to use console to output timing (i guess ava hijacks stdout for it's spinner or such), but wrote some data to a file like so:
which yielded:
so looks like
as an exercise, i was going to try to run each of the 15 ava files discretely and will report back those results, but open to other suggestions or instrumentations. |
The improvement you're seeing with concurrency is documented here: #1318 If you have any potential information that might help debug that it would be greatly appreciated :) |
Seems to me like your tests are slow to start, and slow to run. Hard to give more pointers without seeing them though 😄 |
so, i created a bash script to run the 15 test files separately with timers and indeed each file took about 15s to run which added up to about 3m, but... i noticed that the first file ran in about 2 seconds. so i commented out running a few of the files, but always the first one to run, runs in about 2 seconds and all subsequent run in about 15s... so, i created this simple test:
and ran it twice in the same script, and lo and behold, the first time it runs in 2s and the second time in 15s...!? so this script:
yields this output:
i'm baffled, but does it mean anything to those more traveled? |
But, those are separate AVA runs! That is baffling (and I don't have anything more to add, sorry). |
having problems here too. Ava has not been doing anything for about 10m.
The project is HUGE but the folder I am targeting is actually very small and only has one test and about 10 js files. I have never encountered the problem but have never used it in a project with so many folders. |
I've been collecting globbing related issues under https://github.com/avajs/ava/labels/feature%3A%20globbing. I suspect this is one of them. Closing it though since the concerns are covered elsewhere. |
Description
strangely slow initialization time when pointing to directory
Config
Command-Line Arguments
Environment
The text was updated successfully, but these errors were encountered: