average-australia-85137
03/05/2021, 3:00 PM(remit) [nate@ragin-cajun remit-srv]$ time pytest tests/test_aml_actions.py
======================================================================================================= test session starts ========================================================================================================
platform linux -- Python 3.8.5, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/nate/wave/remit-srv
plugins: celery-4.4.7, requests-mock-1.8.0, Faker-4.1.1, cov-2.10.1
collected 37 items
tests/test_aml_actions.py ..................................... [100%]
======================================================================================================== 37 passed in 1.46s ========================================================================================================
real 0m6.757s
user 0m5.114s
sys 0m1.107s
(remit) [nate@ragin-cajun remit-srv]$ time ./pants test --force tests
11:30:27.95 [INFO] Completed: test - tests/test_aml_actions.py succeeded.
ā tests/test_aml_actions.py succeeded.
real 0m9.105s
user 0m0.437s
sys 0m0.027s
on the new release candidate it still takes about 50% longer to run the tests - is that expected?pytest -s tests/test_aml_actions.py
-> 37 passed in 1.46s
./pants test --output=all --force tests/test_aml_actions.py
-> 37 passed, 86 warnings in 2.13s
I'm not sure how to tell how to determine what how pants is running pytest differently?hundreds-father-404
03/05/2021, 4:39 PM--force
. Is this consistent? Are you using pantsd (on by default)?
I don't think I'd expect that much overhead, but some known remaining places of Pants overhead
1. ~0.6s to start up Pantsd at first
2. iiuc, the first time you create a new Pex like when it says creating pytest_runner.pex
, there is some time involved to unzip it, but then it's cached
3. .pyc files are not cached so must be recompiled every time
4. general Pants overhead of things like determining dependencies
Running this command a second time with pantsd enabled should nullify 1 and 4. Regardless of pantsd, running a second time should nullify 2. Leaving the .pyc files as a likely culprit for why this is still slowerwitty-crayon-22786
03/05/2021, 5:56 PM2.3.x
?hundreds-father-404
03/05/2021, 5:57 PMwitty-crayon-22786
03/05/2021, 5:58 PM--no-process-execution-cleanup-local-dirs
and then seeing how long the __run.sh
script in the captured directory (it will be logged) takes to run would be helpful-ldebug
will render more of the log, which will help point to the process runtime vs overheadhundreds-father-404
03/05/2021, 6:01 PM--no-dynamic-ui
can be helpful to print "starting" messages so you can see the time between "starting" and "completed"witty-crayon-22786
03/05/2021, 6:13 PMaverage-australia-85137
03/05/2021, 6:48 PM