Tests / apps/projects/tests.py
MemoryTest::test_memory_tests_are_ranked_by_average_peak
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
13 ms
median 15 ms
max 17 ms
max 17 ms
Phases
Setup 0.66 ms
Call 12 ms
Teardown 0.14 ms
Categories
Database 12 ms
Other (Unsampled, Libraries, pytest, Imports) 2 ms
22 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
setup0.62 ms5.7%
call10 ms93.2%
MemoryTest.setUpapps/projects/tests.py:1429 self.client.force_login(self.user)6 ms55.9%
ClientMixin.force_logindjango/test/client.py:8556 ms55.9%
ClientMixin._logindjango/test/client.py:8762 ms18.6%
ClientMixin.sessiondjango/test/client.py:8122 ms18.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms18.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms18.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms18.6%
Atomic.__exit__django/db/transaction.py:2472 ms18.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms18.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms18.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms18.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms18.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms18.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms18.6%
Cursor.executepsycopg/cursor.py:1132 ms18.6%
Connection.waitpsycopg/connection.py:4952 ms18.6%
ClientMixin._logindjango/test/client.py:8812 ms18.6%
logindjango/contrib/auth/__init__.py:1972 ms18.6%
Signal.senddjango/dispatch/dispatcher.py:2092 ms18.6%
update_last_logindjango/contrib/auth/models.py:242 ms18.6%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms18.6%
Model.savedjango/db/models/base.py:8742 ms18.6%
Model.save_basedjango/db/models/base.py:9662 ms18.6%
Model._save_tabledjango/db/models/base.py:11102 ms18.6%
Model._do_updatedjango/db/models/base.py:12112 ms18.6%
QuerySet._updatedjango/db/models/query.py:13272 ms18.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms18.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms18.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms18.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms18.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms18.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms18.6%
Cursor.executepsycopg/cursor.py:1132 ms18.6%
Connection.waitpsycopg/connection.py:4952 ms18.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms18.6%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms18.6%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms18.6%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms18.6%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms18.6%
ClientMixin._logindjango/test/client.py:8832 ms18.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms18.6%
Atomic.__exit__django/db/transaction.py:2472 ms18.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms18.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms18.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms18.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms18.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms18.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms18.6%
Cursor.executepsycopg/cursor.py:1132 ms18.6%
Connection.waitpsycopg/connection.py:4952 ms18.6%
MemoryTest.test_memory_tests_are_ranked_by_average_peakapps/projects/tests.py:1449 rows = memory_tests(resolve_scope(self.project, "", 30))2 ms18.6%
memory_testsapps/projects/analytics.py:504 rows = list(2 ms18.6%
QuerySet.__iter__django/db/models/query.py:3902 ms18.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms18.6%
ValuesIterable.__iter__django/db/models/query.py:2222 ms18.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms18.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms18.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms18.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:882 ms18.6%
WhereNode.split_having_qualifydjango/db/models/sql/where.py:472 ms18.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms18.6%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms18.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms18.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms18.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms18.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms18.6%
Cursor.executepsycopg/cursor.py:1132 ms18.6%
Connection.waitpsycopg/connection.py:4952 ms18.6%
Estimated from 6 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
|
6 ms |
|
apps/projects/analytics.py:504
rows = list(
memory_tests
· Database
|
2 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.11 ms |
| _dj_autoclear_mailbox function | 0.06 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
22 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call setUp
apps/projects/tests.py:1429
|
6 ms |
|
call test body
apps/projects/tests.py:1449
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
| setup pytest internals | 0.62 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 | 11 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 15 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 8 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 13 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 8 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 15 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 | 10 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 | 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 | 17 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 9 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 15 ms | Profile |