CI
github-actions:test
13 runs
Average
23 ms
median 20 ms
max 39 ms
max 39 ms
Phases
Setup 18 ms
Call 5 ms
Teardown 0.66 ms
Categories
Database 21 ms
Other (pytest, Unsampled, Mocking, Libraries) 2 ms
5 database queries per run
Needs 0 KB of memory (max 0 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup12 ms74.0%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()11 ms67.8%
TestCase._enter_atomicsdjango/test/testcases.py:139911 ms67.8%
Atomic.__enter__django/db/transaction.py:21011 ms67.8%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45411 ms67.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30411 ms67.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms67.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms67.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms67.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25611 ms67.8%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)11 ms67.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms67.8%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34511 ms67.8%
Connection.connectpsycopg/connection.py:10911 ms67.8%
wait_connpsycopg/waiting.py:1416 ms37.0%
EpollSelector.select<stdlib>/selectors.py:4526 ms37.0%
wait_connpsycopg/waiting.py:1455 ms30.8%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms30.8%
__init____init__:-11.00 ms6.2%
signature<stdlib>/inspect.py:33431.00 ms6.2%
Signature.from_callable<stdlib>/inspect.py:30581.00 ms6.2%
call4 ms24.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()1 ms8.2%
TestCase._fixture_setupdjango/test/testcases.py:14811 ms8.2%
TestCase._enter_atomicsdjango/test/testcases.py:13991 ms8.2%
Atomic.__enter__django/db/transaction.py:2231 ms8.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms8.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms8.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms8.2%
Cursor.executepsycopg/cursor.py:1131 ms8.2%
Connection.waitpsycopg/connection.py:4951 ms8.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms8.2%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms8.2%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms8.2%
Atomic.__exit__django/db/transaction.py:2951 ms8.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms8.2%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms8.2%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3711 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms8.2%
Cursor.executepsycopg/cursor.py:1131 ms8.2%
Connection.waitpsycopg/connection.py:4951 ms8.2%
Estimated from 15 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
11 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestStats class | 10 ms |
| _django_setup_unittest class | 0.52 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
5 queries · 3 msNo repeated queries.
Biggest pieces of work
|
setup setUpClass
django/test/testcases.py:1426
|
11 ms |
| call pytest internals | 1 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
1 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
|
setup __init__
__init__:-1
|
1.00 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 | 16 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 18 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 21 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 13 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 36 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 16 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 25 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 18 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 16 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 27 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 39 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 38 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2 ms | Run |