Tests / starter_packs/tests.py
TestParseHandle::test_invalid_handles
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
23 ms
median 24 ms
max 34 ms
max 34 ms
Phases
Setup 16 ms
Call 6 ms
Teardown 0.99 ms
Categories
Database 20 ms
Other (pytest, Libraries, Unsampled) 4 ms
5 database queries per run
Needs 1 KB of memory (max 8 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup14 ms60.6%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()14 ms60.6%
TestCase._enter_atomicsdjango/test/testcases.py:139914 ms60.6%
Atomic.__enter__django/db/transaction.py:21014 ms60.6%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45414 ms60.6%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30414 ms60.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms60.6%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27914 ms60.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms60.6%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25614 ms60.6%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)14 ms60.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms60.6%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34514 ms60.6%
Connection.connectpsycopg/connection.py:10914 ms60.6%
wait_connpsycopg/waiting.py:14111 ms48.5%
EpollSelector.select<stdlib>/selectors.py:45211 ms48.5%
wait_connpsycopg/waiting.py:1453 ms12.1%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms12.1%
call9 ms38.6%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()7 ms29.0%
TestCase._fixture_setupdjango/test/testcases.py:14817 ms29.0%
TestCase._enter_atomicsdjango/test/testcases.py:13997 ms29.0%
Atomic.__enter__django/db/transaction.py:2237 ms29.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms29.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4007 ms29.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3677 ms29.0%
CursorWrapper.executedjango/db/backends/utils.py:797 ms29.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms29.0%
CursorWrapper._executedjango/db/backends/utils.py:1037 ms29.0%
Cursor.executepsycopg/cursor.py:1137 ms29.0%
Connection.waitpsycopg/connection.py:4957 ms29.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2046 ms24.1%
BaseCursor._start_querypsycopg/_cursor_base.py:3876 ms24.1%
BaseConnection._start_querypsycopg/_connection_base.py:5536 ms24.1%
BaseConnection._exec_commandpsycopg/_connection_base.py:4746 ms24.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms9.7%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms9.7%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms9.7%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms9.7%
Cursor.executepsycopg/cursor.py:1132 ms9.7%
Connection.waitpsycopg/connection.py:4951 ms4.8%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms4.8%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3711 ms4.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms4.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms4.8%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms4.8%
Cursor.executepsycopg/cursor.py:1131 ms4.8%
Connection.waitpsycopg/connection.py:4951 ms4.8%
Estimated from 23 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
|
14 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestParseHandle class | 13 ms |
| _django_setup_unittest class | 0.23 ms |
| monkeypatch function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_db_marker function | 0.04 ms |
| _live_server_helper function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
Database
5 queries · 7 msNo repeated queries.
Biggest pieces of work
|
setup setUpClass
django/test/testcases.py:1426
|
14 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
7 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 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 | 24 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 25 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 24 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 15 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 26 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 17 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 18 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 34 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 32 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 28 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 4 ms | Run |