Tests / apps/projects/tests.py
StorageTest::test_daily_stats_sum_the_days_results
First seen 9 hours ago in 78a4357
CI
github-actions:test
5 runs
Average
7 ms
median 7 ms
max 9 ms
max 9 ms
Phases
Setup 0.77 ms
Call 6 ms
Teardown 0.16 ms
Categories
Database 5 ms
Other (Unsampled, Libraries, pytest) 2 ms
8 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 hours ago ·
open run
setup0.98 ms13.3%
CallInfo.from_call_pytest/runner.py:3530.98 ms13.3%
call_and_report.<locals>.<lambda>_pytest/runner.py:2450.98 ms13.3%
HookCaller.__call__pluggy/_hooks.py:5120.98 ms13.3%
PluginManager._hookexecpluggy/_manager.py:1200.98 ms13.3%
_multicallpluggy/_callers.py:1210.98 ms13.3%
pytest_runtest_setup_pytest/runner.py:1650.98 ms13.3%
SetupState.setup_pytest/runner.py:5230.98 ms13.3%
TestCaseFunction.setup_pytest/unittest.py:2270.98 ms13.3%
Function.setup_pytest/python.py:17230.98 ms13.3%
TopRequest._fillfixtures_pytest/fixtures.py:7070.98 ms13.3%
FixtureRequest.getfixturevalue_pytest/fixtures.py:5390.98 ms13.3%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:6270.98 ms13.3%
FixtureDef.execute_pytest/fixtures.py:11150.98 ms13.3%
Node.addfinalizer_pytest/nodes.py:3910.98 ms13.3%
SetupState.addfinalizer_pytest/runner.py:5350.98 ms13.3%
Node.__hash___pytest/nodes.py:2860.98 ms13.3%
call6 ms84.2%
CallInfo.from_call_pytest/runner.py:3536 ms84.2%
call_and_report.<locals>.<lambda>_pytest/runner.py:2456 ms84.2%
HookCaller.__call__pluggy/_hooks.py:5126 ms84.2%
PluginManager._hookexecpluggy/_manager.py:1206 ms84.2%
_multicallpluggy/_callers.py:1216 ms84.2%
pytest_runtest_call_pytest/runner.py:1796 ms84.2%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:5736 ms84.2%
SimpleTestCase.__call__django/test/testcases.py:3136 ms84.2%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3715 ms63.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()5 ms63.1%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms21.0%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms21.0%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms21.0%
Cursor.executepsycopg/cursor.py:1132 ms21.0%
Connection.waitpsycopg/connection.py:4952 ms21.0%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms21.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms21.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms21.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms21.0%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms21.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms21.0%
Cursor.executepsycopg/cursor.py:1132 ms21.0%
Connection.waitpsycopg/connection.py:4952 ms21.0%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms21.0%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms21.0%
Atomic.__exit__django/db/transaction.py:2832 ms21.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms21.0%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms21.0%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms21.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms21.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms21.0%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms21.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms21.0%
Cursor.executepsycopg/cursor.py:1132 ms21.0%
Connection.waitpsycopg/connection.py:4952 ms21.0%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3682 ms21.0%
TestCase.__call__<stdlib>/unittest/case.py:7472 ms21.0%
TestCase.run<stdlib>/unittest/case.py:6912 ms21.0%
TestCase._callTestMethod<stdlib>/unittest/case.py:6372 ms21.0%
StorageTest.test_daily_stats_sum_the_days_resultsapps/projects/tests.py:1191 stats = self.stats()2 ms21.0%
StorageTest.statsapps/projects/tests.py:1188 return TestDailyStats.objects.get(test=self.test, environment=self.first.environment, day=self.morning.date())2 ms21.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms21.0%
QuerySet.getdjango/db/models/query.py:6252 ms21.0%
QuerySet.filterdjango/db/models/query.py:15422 ms21.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms21.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms21.0%
Query.add_qdjango/db/models/sql/query.py:16712 ms21.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms21.0%
Query.build_filterdjango/db/models/sql/query.py:16132 ms21.0%
Query.build_lookupdjango/db/models/sql/query.py:14402 ms21.0%
Estimated from 5 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/projects/tests.py:1188
return TestDailyStats.objects.get(test=self.test, environment=self.first.environment, day=self.morning.date())
StorageTest.stats
· Database
|
2 ms |
Fixtures
Exact setup time| _django_db_marker function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _live_server_helper function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
8 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call _post_teardown
django/test/testcases.py:1240
|
5 ms |
|
call test body
apps/projects/tests.py:1191
|
2 ms |
| setup pytest internals | 0.98 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 hours ago | CI github-actions:test | passed | 7 ms | Profile |
| 2 hours ago | CI github-actions:test | passed | 7 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 9 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 4 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 8 ms | Profile |