level12 / keg-app-cookiecutter

0 stars 0 forks source link

tox: test performance of pip-sync vs delete of venv and recreation #135

Open rsyring opened 3 years ago

nicoavn commented 1 year ago

I did several tests including using the -r flag tox provides for recreating the virutalenv, and pip-sync is considerably faster (even if the dependencies are cached when recreating the env.

pip-sync

Execution time: 6.983850002288818 seconds Execution time: 6.545219898223877 seconds

tox -r flag (this would recreate the venv)

Execution time: 31.74696969985962 seconds Execution time: 29.940227031707764 seconds