CI
github-actions:test
11 runs
Average
1.21 s
median 1.14 s
max 2.19 s
max 2.19 s
Phases
Setup 3 ms
Call 1.21 s
Teardown 0.41 ms
Categories
Password hashing 1.09 s
Database 26 ms
Factories 0.28 ms
Test code 0.09 ms
Other (Libraries, pytest, Unsampled, Serialization) 95 ms
28 database queries per run
Needs 55 KB of memory (max 368 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup4 ms0.3%
call1.22 s99.6%
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)659 ms53.9%
UserManager.create_userdjango/contrib/auth/models.py:180659 ms53.9%
UserManager._create_userdjango/contrib/auth/models.py:167657 ms53.7%
UserManager._create_user_objectdjango/contrib/auth/models.py:160657 ms53.7%
make_passworddjango/contrib/auth/hashers.py:118657 ms53.7%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333657 ms53.7%
pbkdf2django/utils/crypto.py:93657 ms53.7%
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")473 ms38.7%
UserManager.create_userdjango/contrib/auth/models.py:180473 ms38.7%
UserManager._create_userdjango/contrib/auth/models.py:167472 ms38.6%
UserManager._create_user_objectdjango/contrib/auth/models.py:160472 ms38.6%
make_passworddjango/contrib/auth/hashers.py:118472 ms38.6%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333472 ms38.6%
pbkdf2django/utils/crypto.py:93472 ms38.6%
1 smaller frames hidden
TestApproveConference.test_staff_approvesconfs/tests.py:1390 response = self.client.post(self.url)73 ms5.9%
Client.postdjango/test/client.py:116273 ms5.9%
RequestFactory.postdjango/test/client.py:49973 ms5.9%
RequestFactory.genericdjango/test/client.py:67173 ms5.9%
Client.requestdjango/test/client.py:109173 ms5.9%
ClientHandler.__call__django/test/client.py:17364 ms5.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6364 ms5.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10462 ms5.0%
WhiteNoise.add_fileswhitenoise/base.py:10862 ms5.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12059 ms4.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13159 ms4.8%
WhiteNoise.get_static_filewhitenoise/base.py:21750 ms4.0%
StaticFile.__init__whitenoise/responders.py:7237 ms3.1%
StaticFile.get_file_statswhitenoise/responders.py:16137 ms3.1%
__init____init__:-137 ms3.1%
FileEntry.__init__whitenoise/responders.py:26336 ms3.0%
FileEntry.stat_regular_filewhitenoise/responders.py:27436 ms3.0%
1 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:739 ms0.7%
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
ClientHandler.__call__django/test/client.py:1869 ms0.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1429 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms0.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1239 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms0.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1459 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms0.6%
BaseHandler._get_responsedjango/core/handlers/base.py:1997 ms0.6%
2 smaller frames hidden
6 smaller frames hidden
teardown0.67 ms0.1%
Estimated from 1,213 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1371
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestApproveConference.setUp
· Password hashing
|
659 ms |
|
confs/tests.py:1372
self.normal = User.objects.create_user("bob", password="pw")
TestApproveConference.setUp
· Password hashing
|
473 ms |
|
confs/tests.py:1390
response = self.client.post(self.url)
TestApproveConference.test_staff_approves
· Libraries
|
69 ms |
|
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp
· Database
|
4 ms |
|
confs/tests.py:1389
self.client.force_login(self.staff)
TestApproveConference.test_staff_approves
· Database
|
4 ms |
|
confs/views.py:572
conference = get_object_or_404(Conference, slug=conference_slug)
approve_conference
· Database
|
3 ms |
|
confs/tests.py:1391
self.conference.refresh_from_db()
TestApproveConference.test_staff_approves
· Database
|
2 ms |
|
confs/views.py:575
conference.save(update_fields=["approved_at"])
approve_conference
· Database
|
1 ms |
Fixtures
Exact setup time| _django_isolate_apps function | 3 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _django_set_urlconf function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.06 ms |
| _live_server_helper function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
28 queries · 14 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1371
|
1.14 s |
|
call test body
confs/tests.py:1390
|
79 ms |
| setup pytest internals | 4 ms |
|
call pytest_runtest_call
pytest_cov/plugin.py:425
|
1 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
1 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 1.22 s | Profile |
| 16 hours ago | CI github-actions:test | passed | 744 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 1.14 s | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 1.24 s | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 831 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 1.10 s | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 875 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 772 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 2.19 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.74 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.52 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 914 ms | Run |