Tests / ft/tests.py
TestTrubleshootingPage::test_troubleshooting
First seen 2 years, 10 months ago in b9e98d9
CI
github-actions:test
12 runs
Average
114 ms
median 61 ms
max 230 ms
max 230 ms
Phases
Setup 10 ms
Call 104 ms
Teardown 0.18 ms
Categories
Database 11 ms
Test code 0.01 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 103 ms
5 database queries per run
Needs 131 KB of memory (max 420 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
setup10 ms15.8%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()8 ms12.7%
TestCase._enter_atomicsdjango/test/testcases.py:13968 ms12.7%
Atomic.__enter__django/db/transaction.py:1988 ms12.7%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4548 ms12.7%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3038 ms12.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms12.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2798 ms12.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms12.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2567 ms11.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms11.1%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3337 ms11.1%
Connection.connectpsycopg/connection.py:1097 ms11.1%
wait_connpsycopg/waiting.py:1454 ms6.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms6.3%
wait_connpsycopg/waiting.py:1413 ms4.8%
EpollSelector.select<stdlib>/selectors.py:4523 ms4.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2580.95 ms1.6%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4020.95 ms1.6%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3740.95 ms1.6%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3570.95 ms1.6%
Cursor.executepsycopg/cursor.py:1130.95 ms1.6%
Connection.waitpsycopg/connection.py:4950.95 ms1.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2050.95 ms1.6%
BaseCursor._convert_querypsycopg/_cursor_base.py:4650.95 ms1.6%
PostgresClientQuery.convertpsycopg/_queries.py:2890.95 ms1.6%
PostgresClientQuery.dumppsycopg/_queries.py:2990.95 ms1.6%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3000.95 ms1.6%
call50 ms83.8%
TestTrubleshootingPage.test_troubleshootingft/tests.py:97 response = self.client.get(reverse("trubleshooting"))50 ms83.8%
Client.getdjango/test/client.py:112450 ms83.8%
RequestFactory.getdjango/test/client.py:47550 ms83.8%
RequestFactory.genericdjango/test/client.py:67150 ms83.8%
Client.requestdjango/test/client.py:108250 ms83.8%
ClientHandler.__call__django/test/client.py:17350 ms83.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6244 ms73.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10444 ms73.3%
WhiteNoise.add_fileswhitenoise/base.py:10844 ms73.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12038 ms62.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13138 ms62.8%
WhiteNoise.get_static_filewhitenoise/base.py:20825 ms41.9%
StaticFile.__init__whitenoise/responders.py:756 ms10.5%
StaticFile.__init__whitenoise/responders.py:736 ms10.5%
StaticFile.get_headerswhitenoise/responders.py:1766 ms10.5%
formatdate<stdlib>/email/utils.py:2666 ms10.5%
format_datetime<stdlib>/email/utils.py:2846 ms10.5%
StaticFile.__init__whitenoise/responders.py:746 ms10.5%
parsedate<stdlib>/email/_parseaddr.py:1856 ms10.5%
StaticFile.__init__whitenoise/responders.py:726 ms10.5%
StaticFile.get_file_statswhitenoise/responders.py:1616 ms10.5%
WhiteNoise.get_static_filewhitenoise/base.py:20313 ms20.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:22413 ms20.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17613 ms20.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms10.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:206 ms10.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms10.5%
scantreewhitenoise/base.py:2626 ms10.5%
scantreewhitenoise/base.py:2626 ms10.5%
scantreewhitenoise/base.py:2646 ms10.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:966 ms10.5%
Estimated from 18 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
ft/tests.py:97
response = self.client.get(reverse("trubleshooting"))
TestTrubleshootingPage.test_troubleshooting
· Libraries
|
50 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestTrubleshootingPage class | 8 ms |
| _django_setup_unittest class | 0.68 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _live_server_helper function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _dj_autoclear_mailbox function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| monkeypatch function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
Database
5 queries · 0.80 msNo repeated queries.
Biggest pieces of work
|
call test body
ft/tests.py:97
|
50 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
8 ms |
| setup pytest internals | 2 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 | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 60 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 29 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 53 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 49 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 62 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 27 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 230 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 212 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 208 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 219 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 169 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 49 ms | Profile |