CI
github-actions:test
4 runs
Average
1.59 s
median 1.52 s
max 2.59 s
max 2.59 s
Phases
Setup 3 ms
Call 1.59 s
Teardown 0.37 ms
Categories
Password hashing 1.53 s
Database 8 ms
Factories 0.60 ms
Other (Libraries, pytest, Unsampled) 49 ms
9 database queries per run
Needs 5 KB of memory (max 8 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call739 ms99.9%
TestEditConference.setUpconfs/tests.py:1175 self.owner = User.objects.create_user("owner", password="pw")250 ms33.8%
UserManager.create_userdjango/contrib/auth/models.py:180250 ms33.8%
UserManager._create_userdjango/contrib/auth/models.py:167249 ms33.7%
UserManager._create_user_objectdjango/contrib/auth/models.py:160249 ms33.7%
make_passworddjango/contrib/auth/hashers.py:118249 ms33.7%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333249 ms33.7%
pbkdf2django/utils/crypto.py:93249 ms33.7%
1 smaller frames hidden
TestEditConference.setUpconfs/tests.py:1176 self.other = User.objects.create_user("other", password="pw")242 ms32.7%
UserManager.create_userdjango/contrib/auth/models.py:180242 ms32.7%
UserManager._create_userdjango/contrib/auth/models.py:167241 ms32.6%
UserManager._create_user_objectdjango/contrib/auth/models.py:160241 ms32.6%
make_passworddjango/contrib/auth/hashers.py:118241 ms32.6%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333241 ms32.6%
pbkdf2django/utils/crypto.py:93241 ms32.6%
1 smaller frames hidden
TestEditConference.setUpconfs/tests.py:1177 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)238 ms32.1%
UserManager.create_userdjango/contrib/auth/models.py:180238 ms32.1%
UserManager._create_userdjango/contrib/auth/models.py:167238 ms32.1%
UserManager._create_user_objectdjango/contrib/auth/models.py:160238 ms32.1%
make_passworddjango/contrib/auth/hashers.py:118238 ms32.1%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333238 ms32.1%
pbkdf2django/utils/crypto.py:93238 ms32.1%
TestEditConference.test_requires_loginconfs/tests.py:1207 response = self.client.get(self.url)8 ms1.1%
Client.getdjango/test/client.py:11338 ms1.1%
RequestFactory.getdjango/test/client.py:4758 ms1.1%
RequestFactory.genericdjango/test/client.py:6718 ms1.1%
Client.requestdjango/test/client.py:10916 ms0.8%
ClientHandler.__call__django/test/client.py:1736 ms0.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:636 ms0.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1046 ms0.8%
WhiteNoise.add_fileswhitenoise/base.py:1086 ms0.8%
1 smaller frames hidden
1 smaller frames hidden
Estimated from 718 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1175
self.owner = User.objects.create_user("owner", password="pw")
TestEditConference.setUp
· Password hashing
|
250 ms |
|
confs/tests.py:1176
self.other = User.objects.create_user("other", password="pw")
TestEditConference.setUp
· Password hashing
|
242 ms |
|
confs/tests.py:1177
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestEditConference.setUp
· Password hashing
|
238 ms |
|
confs/tests.py:1207
response = self.client.get(self.url)
TestEditConference.test_requires_login
· Libraries
|
8 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.02 ms |
| _django_isolate_apps function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
9 queries · 3 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
3×
INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"
Biggest pieces of work
|
call setUp
confs/tests.py:1175
|
729 ms |
|
call test body
confs/tests.py:1207
|
8 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 739 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 2.12 s | Profile |
| 7 hours ago | CI github-actions:test | passed | 917 ms | Profile |
| 12 hours ago | CI github-actions:test | passed | 2.59 s | Profile |
| 12 hours ago | CI github-actions:test | passed | 1.12 s | Run |