Re: [Speed] Update Django from 1.11 to 2.0? What about Python 2.7 and PyPy2?

INADA Naoki schrieb am 16.01.2018 um 12:37:
Even though it's not good for comparing interpreter performance, it's good for people comparing Python 2 and 3.
If Django 2.0 on Python 3.7 is much faster than Django 1.11 on Python 2.7, it's nice carrot for people moving forward.
FYI, Django 2 is about 2x faster than 1.11 on django_template benchmark! It's because Django 1.11 calls force_text() many times for Python 2 compatibility.
https://github.com/django/django/blob/419705bbe84e27c3d5be85f198a0352a672492... https://github.com/django/django/blob/419705bbe84e27c3d5be85f198a0352a672492...
Actually, dropping Python 2 support makes Django faster. It's nice news!
That suggests adding Django 2 as a new Py3-only benchmark.
Stefan

2018-01-19 11:28 GMT+01:00 Stefan Behnel <stefan_ml@behnel.de>:
That suggests adding Django 2 as a new Py3-only benchmark.
Again, the practical issue is to install Django 2 and Django 1.11 in the same virtual environment. I'm not sure that it's doable.
I would prefer to not have to create a different virtualenv for Python3-only dependencies.
I needed to release quickly a bugfix release, fix --track-memory, feature asked by Xiang Zhang, so I released performance 0.6.1 which only updated Django from 1.11.3 to 1.11.9.
Or we need to redesign how performance install dependencies, but that's a larger project :-)
Victor
participants (2)
-
Stefan Behnel
-
Victor Stinner