Tests / apps/projects/tests.py
MemoryTest::test_stored_and_summed_per_day
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
14 ms
median 14 ms
max 21 ms
max 21 ms
Phases
Setup 0.73 ms
Call 12 ms
Teardown 1 ms
Categories
Database 12 ms
Other (Unsampled, Libraries, pytest) 2 ms
23 database queries per run
Needs 0 KB of memory (max 4 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.55 ms5.3%
call9 ms90.5%
MemoryTest.setUpapps/projects/tests.py:1429 self.client.force_login(self.user)3 ms30.2%
ClientMixin.force_logindjango/test/client.py:8553 ms30.2%
ClientMixin._logindjango/test/client.py:8763 ms30.2%
ClientMixin.sessiondjango/test/client.py:8123 ms30.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms30.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms30.2%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1983 ms30.2%
SessionStore.existsdjango/contrib/sessions/backends/db.py:633 ms30.2%
QuerySet.existsdjango/db/models/query.py:13373 ms30.2%
Query.has_resultsdjango/db/models/sql/query.py:6813 ms30.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15923 ms30.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms30.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms30.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms30.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms30.2%
Cursor.executepsycopg/cursor.py:1133 ms30.2%
Connection.waitpsycopg/connection.py:4953 ms30.2%
MemoryTest.test_stored_and_summed_per_dayapps/projects/tests.py:1437 stats = TestDailyStats.objects.get(test=self.hog_test)3 ms30.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms30.2%
QuerySet.getdjango/db/models/query.py:6353 ms30.2%
QuerySet.__len__django/db/models/query.py:3723 ms30.2%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms30.2%
ModelIterable.__iter__django/db/models/query.py:953 ms30.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms30.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms30.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms30.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms30.2%
Cursor.executepsycopg/cursor.py:1133 ms30.2%
Connection.waitpsycopg/connection.py:4953 ms30.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms30.2%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms30.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4833 ms30.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms30.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms30.2%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms30.2%
Cursor.executepsycopg/cursor.py:1133 ms30.2%
Connection.waitpsycopg/connection.py:4953 ms30.2%
teardown0.43 ms4.2%
Estimated from 5 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:1429
self.client.force_login(self.user)
MemoryTest.setUp
· Database
|
3 ms |
|
apps/projects/tests.py:1437
stats = TestDailyStats.objects.get(test=self.hog_test)
MemoryTest.test_stored_and_summed_per_day
· Database
|
3 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
23 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call setUp
apps/projects/tests.py:1429
|
3 ms |
|
call test body
apps/projects/tests.py:1437
|
3 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
3 ms |
| setup pytest internals | 0.55 ms |
| teardown pytest internals | 0.43 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 10 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 14 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 8 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 14 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 12 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 21 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 12 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 16 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 9 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 19 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 15 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 15 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 | 10 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 17 ms | Profile |