Hi Mark,
It's hard to tell exactly what's going on without more details but assuming you are running tests
against SQLite the 2.1 to 2.2 slowdown is likely caused by the fact database constraints are
now checked of each TestCase[0].
Cheers,
Simon
[0] https://docs.djangoproject.com/en/2.2/releases/2.2/#tests
I was fixing up a Django app https://github.com/mark0978/django-softdelete and setting up tox to make sure it worked with all the listed versions because of issues opened on the original repo. While I was running tox locally I noticed that with every version of Django, the tests ran slower, and from 1.8 -> 2.2 the test time was nearly doubled. This was true for every version of python tested from 2.7 - 3.7.If you want to check this on your machine, just grab the repo and run tox. I'm including the minimal tox output to show this phenomenon.py27-A installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,Django==1.8.19,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 2.821spy27-B installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,Django==1.9.13,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 3.036spy27-C installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,Django==1.10.8,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 3.198spy27-D installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,Django==1.11.21,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 3.609spy34-A installed: DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).,Django==1.8.19,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 2.733spy34-B installed: DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).,Django==1.9.13,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 3.066spy34-C installed: DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).,Django==1.10.8,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 3.232spy34-D installed: DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).,Django==1.11.21,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 3.564spy34-E installed: DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).,Django==2.0.13,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 5.515spy35-A installed: Django==1.8.19,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 2.603spy35-B installed: Django==1.9.13,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 2.923spy35-C installed: Django==1.10.8,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 3.099spy35-D installed: Django==1.11.21,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 3.252spy35-E installed: Django==2.0.13,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 5.163spy35-F installed: Django==2.1.9,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 5.784spy35-G installed: Django==2.2.2,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1, sqlparse==0.3.0 ------------------------------------------------------------ ---------- Ran 14 tests in 6.744spy36-A installed: Django==1.8.19,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 2.619spy36-B installed: Django==1.9.13,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 2.835spy36-C installed: Django==1.10.8,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 3.025spy36-D installed: Django==1.11.21,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 3.147spy36-E installed: Django==2.0.13,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 5.058spy36-F installed: Django==2.1.9,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 5.722spy36-G installed: Django==2.2.2,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1, sqlparse==0.3.0 ------------------------------------------------------------ ---------- Ran 14 tests in 6.524spy37-A installed: Django==1.8.19,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 2.584spy37-B installed: Django==1.9.13,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 2.730spy37-C installed: Django==1.10.8,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 2.892spy37-D installed: Django==1.11.21,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 3.050spy37-E installed: Django==2.0.13,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 5.117spy37-F installed: Django==2.1.9,-e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete,pytz==2019.1 ------------------------------------------------------------ ---------- Ran 14 tests in 5.778spy37-G installed: -e git+git@github.com:mark0978/django-softdelete.git@ 72b46b0a7823a4fdcb43489663e907 13ca7d698d#egg=django_ softdelete ------------------------------------------------------------ ---------- Ran 14 tests in 6.647s
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/84e45bad-87d0-4da0-acd9-26e00140b05a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment