Tests / ft/tests.py
TestDatabaseConnectionRetries::test_settings
First seen 1 week, 1 day ago in cb18ed3
CI
github-actions:test
1 run
Average
32 ms
median 32 ms
max 32 ms
max 32 ms
Phases
Setup 0.44 ms
Call 0.11 ms
Teardown 32 ms
Categories
Other (DB schema, Unsampled) 32 ms
1 database queries per run
Needs 4 KB of memory (max 4 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 1 week, 1 day ago ·
open run
teardown32 ms98.3%
django_db_setuppytest_django/fixtures.py:211 teardown_databases(db_cfg, verbosity=request.config.option.verbose)32 ms98.3%
teardown_databasesdjango/test/utils.py:38132 ms98.3%
BaseDatabaseCreation.destroy_test_dbdjango/db/backends/base/creation.py:33031 ms95.1%
DatabaseCreation._destroy_test_dbdjango/db/backends/postgresql/creation.py:9131 ms95.1%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:34626 ms79.3%
CursorWrapper.executedjango/db/backends/utils.py:7926 ms79.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9226 ms79.3%
CursorWrapper._executedjango/db/backends/utils.py:10326 ms79.3%
Cursor.executepsycopg/cursor.py:11326 ms79.3%
Connection.waitpsycopg/connection.py:49526 ms79.3%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:3455 ms15.9%
DatabaseWrapper._nodb_cursordjango/db/backends/postgresql/base.py:5085 ms15.9%
BaseDatabaseWrapper._nodb_cursordjango/db/backends/base/base.py:7125 ms15.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.9%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3205 ms15.9%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2965 ms15.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.9%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2795 ms15.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2565 ms15.9%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)5 ms15.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.9%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3335 ms15.9%
Connection.connectpsycopg/connection.py:1095 ms15.9%
wait_connpsycopg/waiting.py:1453 ms9.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms9.5%
wait_connpsycopg/waiting.py:1412 ms6.3%
EpollSelector.select<stdlib>/selectors.py:4522 ms6.3%
BaseDatabaseCreation.destroy_test_dbdjango/db/backends/base/creation.py:3021 ms3.2%
Estimated from 31 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· DB schema
|
5 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.03 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
1 queries · 25 msNo repeated queries.
Biggest pieces of work
|
teardown fixture django_db_setup (session scope)
pytest_django/fixtures.py:211
|
32 ms |
Reliability
1 result · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 1 result, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 1 week, 1 day ago | CI github-actions:test | passed | 32 ms | Profile |