CI
github-actions:test
5 runs
Average
34 ms
median 36 ms
max 39 ms
max 39 ms
Phases
Setup 0.74 ms
Call 33 ms
Teardown 0.18 ms
Categories
Database 3 ms
Other (Libraries, Unsampled, pytest) 31 ms
5 database queries per run
Needs 81 KB of memory (max 364 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 44 minutes ago ·
open run
setup0.88 ms2.4%
call35 ms97.0%
ProfileUploadTest.test_get_not_allowedapps/api/tests.py:626 response = self.client.get("/api/v1/profile", headers={"Authorization": self.secret_token})33 ms90.5%
Client.getdjango/test/client.py:112433 ms90.5%
RequestFactory.getdjango/test/client.py:47533 ms90.5%
RequestFactory.genericdjango/test/client.py:67133 ms90.5%
Client.requestdjango/test/client.py:108233 ms90.5%
ClientHandler.__call__django/test/client.py:17333 ms90.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6231 ms84.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10431 ms84.1%
WhiteNoise.add_fileswhitenoise/base.py:10831 ms84.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12024 ms64.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms64.7%
WhiteNoise.get_static_filewhitenoise/base.py:20814 ms38.8%
StaticFile.__init__whitenoise/responders.py:747 ms19.4%
parsedate<stdlib>/email/_parseaddr.py:1857 ms19.4%
StaticFile.__init__whitenoise/responders.py:725 ms12.9%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms6.5%
__init____init__:-12 ms6.5%
FileEntry.__init__whitenoise/responders.py:2632 ms6.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms6.5%
<GC>~2 ms6.5%
StaticFile.__init__whitenoise/responders.py:732 ms6.5%
StaticFile.get_headerswhitenoise/responders.py:1802 ms6.5%
WhiteNoise.get_static_filewhitenoise/base.py:2039 ms25.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2249 ms25.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms19.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms19.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms12.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2055 ms12.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms6.5%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2122 ms6.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms12.9%
scantreewhitenoise/base.py:2625 ms12.9%
scantreewhitenoise/base.py:2625 ms12.9%
scantreewhitenoise/base.py:2622 ms6.5%
scantreewhitenoise/base.py:2622 ms6.5%
scantreewhitenoise/base.py:2602 ms6.5%
scantreewhitenoise/base.py:2642 ms6.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:962 ms6.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms6.5%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms6.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms6.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms6.5%
Cursor.executepsycopg/cursor.py:1132 ms6.5%
Connection.waitpsycopg/connection.py:4952 ms6.5%
Estimated from 16 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/api/tests.py:626
response = self.client.get("/api/v1/profile", headers={"Authorization": self.secret_token})
ProfileUploadTest.test_get_not_allowed
· Libraries
|
33 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_set_urlconf 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
5 queries · 1 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/api/tests.py:626
|
33 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
| setup pytest internals | 0.88 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 | |
|---|---|---|---|---|
| 44 minutes ago | CI github-actions:test | passed | 36 ms | Profile |
| an hour ago | CI github-actions:test | passed | 36 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 37 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 22 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 39 ms | Profile |