Tests / confs/tests.py
TestCreateConference::test_mastodon_handle_is_converted_to_url
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
687 ms
median 595 ms
max 1.22 s
max 1.22 s
Phases
Setup 1 ms
Call 686 ms
Teardown 0.32 ms
Categories
Password hashing 579 ms
Database 31 ms
App code 0.08 ms
Other (Libraries, Deep copies, pytest, Unsampled, ...) 77 ms
27 database queries per run
Needs 638 KB of memory (max 920 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.87 ms0.2%
call430 ms99.7%
TestCreateConference.setUpconfs/tests.py:1044 self.user = User.objects.create_user("alice", password="pw")413 ms95.9%
UserManager.create_userdjango/contrib/auth/models.py:180413 ms95.9%
UserManager._create_userdjango/contrib/auth/models.py:167412 ms95.6%
UserManager._create_user_objectdjango/contrib/auth/models.py:160412 ms95.6%
make_passworddjango/contrib/auth/hashers.py:118412 ms95.6%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333412 ms95.6%
pbkdf2django/utils/crypto.py:93412 ms95.6%
1 smaller frames hidden
TestCreateConference.test_mastodon_handle_is_converted_to_urlconfs/tests.py:1121 self.client.post(reverse("create_conference"), data)11 ms2.6%
Client.postdjango/test/client.py:116211 ms2.6%
RequestFactory.postdjango/test/client.py:49911 ms2.6%
RequestFactory.genericdjango/test/client.py:67111 ms2.6%
Client.requestdjango/test/client.py:109111 ms2.6%
ClientHandler.__call__django/test/client.py:17311 ms2.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6311 ms2.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10411 ms2.6%
WhiteNoise.add_fileswhitenoise/base.py:10811 ms2.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1208 ms1.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1318 ms1.8%
WhiteNoise.get_static_filewhitenoise/base.py:2174 ms1.0%
StaticFile.__init__whitenoise/responders.py:722 ms0.5%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms0.5%
__init____init__:-12 ms0.5%
FileEntry.__init__whitenoise/responders.py:2632 ms0.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms0.5%
<GC>~2 ms0.5%
2 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms0.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms0.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms0.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms0.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms0.5%
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms0.8%
scantreewhitenoise/base.py:2713 ms0.8%
scantreewhitenoise/base.py:2712 ms0.5%
1 smaller frames hidden
TestCreateConference.test_mastodon_handle_is_converted_to_urlconfs/tests.py:1115 self.client.force_login(self.user)6 ms1.3%
ClientMixin.force_logindjango/test/client.py:8586 ms1.3%
ClientMixin._logindjango/test/client.py:8842 ms0.5%
ClientMixin.sessiondjango/test/client.py:8152 ms0.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms0.5%
ClientMixin._logindjango/test/client.py:8892 ms0.5%
logindjango/contrib/auth/__init__.py:1892 ms0.5%
1 smaller frames hidden
Estimated from 386 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1044
self.user = User.objects.create_user("alice", password="pw")
TestCreateConference.setUp
· Password hashing
|
413 ms |
|
confs/tests.py:1121
self.client.post(reverse("create_conference"), data)
TestCreateConference.test_mastodon_handle_is_converted_to_url
· Libraries
|
11 ms |
|
confs/tests.py:1115
self.client.force_login(self.user)
TestCreateConference.test_mastodon_handle_is_converted_to_url
· Database
|
6 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.04 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
27 queries · 9 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1044
|
413 ms |
|
call test body
confs/tests.py:1121
|
17 ms |
| setup pytest internals | 0.87 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 431 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 570 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 708 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 417 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 641 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 595 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 480 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 786 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 519 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 463 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 982 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.12 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.22 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 678 ms | Run |