Tests / posts/tests.py
TestDjangoConUSLegacyRedirect::test_djangoconus_date_redirects
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
111 ms
median 104 ms
max 193 ms
max 193 ms
Phases
Setup 15 ms
Call 95 ms
Teardown 0.40 ms
Categories
Database 23 ms
Other (Libraries, Unsampled, pytest, Deep copies) 88 ms
5 database queries per run
Needs 713 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup10 ms14.2%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()9 ms12.7%
TestCase._enter_atomicsdjango/test/testcases.py:13999 ms12.7%
Atomic.__enter__django/db/transaction.py:2109 ms12.7%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms12.7%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3049 ms12.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms12.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms12.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms12.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms12.7%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)9 ms12.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms12.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3459 ms12.7%
Connection.connectpsycopg/connection.py:1099 ms12.7%
wait_connpsycopg/waiting.py:1414 ms6.3%
EpollSelector.select<stdlib>/selectors.py:4524 ms6.3%
wait_connpsycopg/waiting.py:1454 ms6.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms6.3%
call59 ms85.4%
TestDjangoConUSLegacyRedirect.test_djangoconus_date_redirectsposts/tests.py:30 response = self.client.get(reverse("djangoconus", args=[dt.date(2023, 10, 16)]))55 ms80.7%
Client.getdjango/test/client.py:113355 ms80.7%
RequestFactory.getdjango/test/client.py:47555 ms80.7%
RequestFactory.genericdjango/test/client.py:67155 ms80.7%
Client.requestdjango/test/client.py:109155 ms80.7%
ClientHandler.__call__django/test/client.py:17355 ms80.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6355 ms80.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10455 ms80.7%
WhiteNoise.add_fileswhitenoise/base.py:10855 ms80.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11529 ms42.7%
scantreewhitenoise/base.py:27129 ms42.7%
scantreewhitenoise/base.py:27123 ms33.2%
scantreewhitenoise/base.py:27313 ms19.0%
scantreewhitenoise/base.py:27110 ms14.2%
scantreewhitenoise/base.py:27110 ms14.2%
scantreewhitenoise/base.py:27110 ms14.2%
scantreewhitenoise/base.py:27310 ms14.2%
scantreewhitenoise/base.py:2737 ms9.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12026 ms38.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13126 ms38.0%
WhiteNoise.get_static_filewhitenoise/base.py:21720 ms28.5%
StaticFile.__init__whitenoise/responders.py:7310 ms14.2%
StaticFile.get_headerswhitenoise/responders.py:1783 ms4.7%
parsedate<stdlib>/email/_parseaddr.py:1853 ms4.7%
parsedate_tz<stdlib>/email/_parseaddr.py:503 ms4.7%
_parsedate_tz<stdlib>/email/_parseaddr.py:1053 ms4.7%
StaticFile.get_headerswhitenoise/responders.py:1673 ms4.7%
__init____init__:-13 ms4.7%
Headers.__init__<stdlib>/wsgiref/headers.py:433 ms4.7%
StaticFile.__init__whitenoise/responders.py:777 ms9.5%
StaticFile.get_alternativeswhitenoise/responders.py:1983 ms4.7%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1983 ms4.7%
<GC>~3 ms4.7%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms4.7%
__init____init__:-13 ms4.7%
Headers.__init__<stdlib>/wsgiref/headers.py:433 ms4.7%
StaticFile.__init__whitenoise/responders.py:743 ms4.7%
parsedate<stdlib>/email/_parseaddr.py:1853 ms4.7%
WhiteNoise.get_static_filewhitenoise/base.py:2127 ms9.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms9.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms9.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms9.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:207 ms9.5%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2357 ms9.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2143 ms4.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2163 ms4.7%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2073 ms4.7%
urljoin<stdlib>/urllib/parse.py:7073 ms4.7%
_urlsplit<stdlib>/urllib/parse.py:6073 ms4.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()3 ms4.7%
TestCase._fixture_setupdjango/test/testcases.py:14813 ms4.7%
TestCase._enter_atomicsdjango/test/testcases.py:13993 ms4.7%
Atomic.__enter__django/db/transaction.py:2233 ms4.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4003 ms4.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3673 ms4.7%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.7%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms4.7%
Cursor.executepsycopg/cursor.py:1133 ms4.7%
Connection.waitpsycopg/connection.py:4953 ms4.7%
Estimated from 27 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
posts/tests.py:30
response = self.client.get(reverse("djangoconus", args=[dt.date(2023, 10, 16)]))
TestDjangoConUSLegacyRedirect.test_djangoconus_date_redirects
· Libraries
|
55 ms |
|
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
9 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestDjangoConUSLegacyRedirect class | 9 ms |
| _django_setup_unittest class | 0.17 ms |
| _django_db_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.03 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 1 msNo repeated queries.
Biggest pieces of work
|
call test body
posts/tests.py:30
|
55 ms |
|
setup setUpClass
django/test/testcases.py:1426
|
9 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
3 ms |
| setup pytest internals | 1 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 | 69 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 86 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 139 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 105 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 87 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 88 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 131 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 104 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 95 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 61 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 150 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 193 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 136 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 73 ms | Run |