Я тестировал на своем macbook 2015 года, virtualenv
в 6 раз быстрее.
virtualenv
версия: 20.0.21
$ time virtualenv $RANDOM
created virtual environment CPython3.8.3.final.0-64 in 340ms
creator CPython3Posix(dest=/private/tmp/4997, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/Users/noname/Library/Application Support/virtualenv/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
real 0m0.489s
user 0m0.269s
sys 0m0.283s
$ time /usr/local/opt/python@3.8/bin/python3 -m venv $RANDOM
real 0m3.112s
user 0m2.334s
sys 0m0.731s
python3 .8 устанавливается через homebrew.
даже с параметрами --creator venv --always-copy
, virtualenv
быстрее:
$ time virtualenv --creator venv --always-copy $RANDOM
created virtual environment CPython3.8.3.final.0-64 in 418ms
creator Venv(dest=/private/tmp/28878, clear=False, global=False, describe=CPython3Posix)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/Users/noname/Library/Application Support/virtualenv/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
real 0m0.554s
user 0m0.316s
sys 0m0.309s
почему у них нет такой же производительности?