Tests / stats/tests.py
TestStats::test_all_daily_lang_stats
First seen 2 years, 10 months ago in 1cd3a8d
CI
github-actions:test
5 runs
Average
28 ms
median 27 ms
max 39 ms
max 39 ms
Phases
Setup 22 ms
Call 5 ms
Teardown 0.67 ms
Categories
Database 26 ms
Other (Unsampled, Mocking, pytest, 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 days ago ·
open run
setup15 ms73.8%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()13 ms64.0%
TestCase._enter_atomicsdjango/test/testcases.py:139913 ms64.0%
Atomic.__enter__django/db/transaction.py:21013 ms64.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45413 ms64.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30413 ms64.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms64.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27913 ms64.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms64.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25613 ms64.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms64.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34513 ms64.0%
Connection.connectpsycopg/connection.py:10913 ms64.0%
wait_connpsycopg/waiting.py:1459 ms44.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4399 ms44.3%
wait_connpsycopg/waiting.py:1414 ms19.7%
EpollSelector.select<stdlib>/selectors.py:4524 ms19.7%
call4 ms21.6%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms10.8%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms10.8%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms10.8%
Atomic.__enter__django/db/transaction.py:2232 ms10.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms10.8%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms10.8%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms10.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms10.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms10.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms10.8%
Cursor.executepsycopg/cursor.py:1132 ms10.8%
Connection.waitpsycopg/connection.py:4952 ms10.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms10.8%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms5.4%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms5.4%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms5.4%
Cursor.executepsycopg/cursor.py:1131 ms5.4%
Connection.waitpsycopg/connection.py:4951 ms5.4%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms5.4%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms5.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms5.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms5.4%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms5.4%
Cursor.executepsycopg/cursor.py:1131 ms5.4%
Connection.waitpsycopg/connection.py:4951 ms5.4%
teardown0.92 ms4.6%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)0.92 ms4.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14080.92 ms4.6%
Atomic.__exit__django/db/transaction.py:3070.92 ms4.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.92 ms4.6%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3370.92 ms4.6%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3080.92 ms4.6%
Connection.rollbackpsycopg/connection.py:3140.92 ms4.6%
Connection.waitpsycopg/connection.py:4950.92 ms4.6%
BaseConnection._rollback_genpsycopg/_connection_base.py:6170.92 ms4.6%
BaseConnection._exec_commandpsycopg/_connection_base.py:4740.92 ms4.6%
Estimated from 20 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestStats class | 13 ms |
| _django_setup_unittest class | 0.32 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.06 ms |
| _django_db_marker function | 0.05 ms |
| _django_clear_site_cache function | 0.05 ms |
| _live_server_helper function | 0.04 ms |
| _django_isolate_apps function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| monkeypatch function | 0.03 ms |
Database
5 queries · 3 msNo repeated queries.
Biggest pieces of work
|
setup setUpClass
django/test/testcases.py:1426
|
13 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 ms |
| setup pytest internals | 2 ms |
|
teardown tearDownClass
django/test/testcases.py:1456
|
0.92 ms |
Reliability
6 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 6 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 days ago | CI github-actions:test | passed | 20 ms | Profile |
| 4 days, 2 hours ago | CI github-actions:test | passed | 16 ms | Profile |
| 4 days, 2 hours ago | CI github-actions:test | passed | 27 ms | Profile |
| 4 days, 3 hours ago | CI github-actions:test | passed | 39 ms | Profile |
| 4 days, 7 hours ago | CI github-actions:test | passed | 38 ms | Profile |
| 4 days, 8 hours ago | CI github-actions:test | passed | 2 ms | Run |