#35102: Performance regression on Model.objects.count() between Django 4.2 and 
5.0
-------------------------------------+-------------------------------------
     Reporter:  Anthony Shaw         |                    Owner:  (none)
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  5.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Anthony Shaw):

 And then with Mariusz' patches the overall speedup is 1.8x compared with
 main:



 {{{
 Running benchmarks: query_count
 Control: Django 5.1 (in git branch main)
 Experiment: Django 5.1 (in git branch exp_1)

 Running 'query_count' benchmark ...
 Min: 0.000294 -> 0.000163: 1.8003x faster
 Avg: 0.000317 -> 0.000173: 1.8301x faster
 Significant (t=53.998054)
 Stddev: 0.00003 -> 0.00002: 1.4805x smaller (N = 200)
 }}}

 And an overall improvement on 4.2


 {{{
 Running benchmarks: query_count
 Control: Django 4.2 (in git branch 4.2)
 Experiment: Django 5.1 (in git branch exp_1)

 Running 'query_count' benchmark ...
 Min: 0.000191 -> 0.000174: 1.0997x faster
 Avg: 0.000263 -> 0.000200: 1.3143x faster
 Significant (t=3.949122)
 Stddev: 0.00022 -> 0.00004: 5.2520x smaller (N = 200)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35102#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018cfa32cd32-940c5f60-83f5-4100-aa54-dacc683f82e0-000000%40eu-central-1.amazonses.com.

Reply via email to