Tests / accounts/tests.py
TestSelectedInstance::test_invalid_selected_instance
First seen 3 years ago in 1cd3a8d
CI
github-actions:test
13 runs
Average
7.37 s
median 7.00 s
max 11.21 s
max 11.21 s
Phases
Setup 6.99 s
Call 383 ms
Teardown 1 ms
Categories
Migrations 6.02 s
Database 151 ms
App code 2 ms
Other (DB schema, Imports, Libraries, Templates, ...) 1.20 s
1119 database queries per run
Needs 33 MB of memory (max 34 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup4.92 s94.5%
django_db_setuppytest_django/fixtures.py:186 db_cfg = setup_databases(4.81 s92.5%
setup_databasesdjango/test/utils.py:2204.81 s92.5%
BaseDatabaseCreation.create_test_dbdjango/db/backends/base/creation.py:914.06 s78.0%
call_commanddjango/core/management/__init__.py:1954.04 s77.6%
BaseCommand.executedjango/core/management/base.py:4664.04 s77.6%
no_translations.<locals>.wrapperdjango/core/management/base.py:1134.04 s77.6%
Command.handledjango/core/management/commands/migrate.py:3553.74 s71.8%
MigrationExecutor.migratedjango/db/migrations/executor.py:1373.72 s71.5%
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:1693.72 s71.5%
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:2572.84 s54.6%
Migration.applydjango/db/migrations/migration.py:1321.67 s32.0%
AddField.database_forwardsdjango/db/migrations/operations/fields.py:118458 ms8.8%
BaseDatabaseSchemaEditor.add_fielddjango/db/backends/base/schema.py:816295 ms5.7%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48256 ms4.9%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211250 ms4.8%
CursorWrapper.executedjango/db/backends/utils.py:79250 ms4.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92250 ms4.8%
CursorWrapper._executedjango/db/backends/utils.py:103250 ms4.8%
Cursor.executepsycopg/cursor.py:113250 ms4.8%
Connection.waitpsycopg/connection.py:495250 ms4.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:206110 ms2.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:286108 ms2.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:78108 ms2.1%
2 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4533 ms0.6%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21133 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:7933 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9233 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:10333 ms0.6%
Cursor.executepsycopg/cursor.py:11333 ms0.6%
Connection.waitpsycopg/connection.py:49533 ms0.6%
1 smaller frames hidden
BaseDatabaseSchemaEditor.add_fielddjango/db/backends/base/schema.py:830144 ms2.8%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48139 ms2.7%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211133 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:79133 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92133 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:103133 ms2.6%
Cursor.executepsycopg/cursor.py:113133 ms2.6%
Connection.waitpsycopg/connection.py:495133 ms2.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:20638 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28638 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7838 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
4 smaller frames hidden
RunPython.database_forwardsdjango/db/migrations/operations/special.py:203400 ms7.7%
cached_property.__get__django/utils/functional.py:47196 ms3.8%
ProjectState.appsdjango/db/migrations/state.py:592196 ms3.8%
__init____init__:-1196 ms3.8%
StateApps.__init__django/db/migrations/state.py:653196 ms3.8%
StateApps.render_multipledjango/db/migrations/state.py:691196 ms3.8%
ModelState.renderdjango/db/migrations/state.py:989132 ms2.5%
ModelBase.__new__django/db/models/base.py:21471 ms1.4%
ModelBase.add_to_classdjango/db/models/base.py:39468 ms1.3%
ManyToManyField.contribute_to_classdjango/db/models/fields/related.py:207434 ms0.7%
RelatedField.contribute_to_classdjango/db/models/fields/related.py:40534 ms0.7%
lazy_related_operationdjango/db/models/fields/related.py:9534 ms0.7%
<GC>~34 ms0.7%
7 smaller frames hidden
11 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98261 ms1.2%
Field.clonedjango/db/models/fields/__init__.py:71228 ms0.5%
Field.clonedjango/db/models/fields/__init__.py:71326 ms0.5%
1 smaller frames hidden
2 smaller frames hidden
seed_conference_tagsconfs/migrations/0031_seed_conference_tags.py:14 ConferenceTag.objects.update_or_create(124 ms2.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:87124 ms2.4%
QuerySet.update_or_createdjango/db/models/query.py:109690 ms1.7%
QuerySet.get_or_createdjango/db/models/query.py:106135 ms0.7%
QuerySet.createdjango/db/models/query.py:73635 ms0.7%
Model.savedjango/db/models/base.py:90435 ms0.7%
Model.save_basedjango/db/models/base.py:99633 ms0.6%
Model._save_tabledjango/db/models/base.py:119933 ms0.6%
Model._do_insertdjango/db/models/base.py:125133 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8733 ms0.6%
QuerySet._insertdjango/db/models/query.py:214133 ms0.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193628 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:7926 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9226 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:10526 ms0.5%
Cursor.executepsycopg/cursor.py:11326 ms0.5%
Connection.waitpsycopg/connection.py:49526 ms0.5%
1 smaller frames hidden
QuerySet.get_or_createdjango/db/models/query.py:105434 ms0.7%
1 smaller frames hidden
QuerySet.update_or_createdjango/db/models/query.py:109333 ms0.6%
13 smaller frames hidden
CreateModel.database_forwardsdjango/db/migrations/operations/models.py:100304 ms5.8%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:524275 ms5.3%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:45275 ms5.3%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211270 ms5.2%
CursorWrapper.executedjango/db/backends/utils.py:79270 ms5.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92270 ms5.2%
CursorWrapper._executedjango/db/backends/utils.py:103267 ms5.1%
Cursor.executepsycopg/cursor.py:113267 ms5.1%
Connection.waitpsycopg/connection.py:495266 ms5.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:20643 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28641 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7841 ms0.8%
1 smaller frames hidden
2 smaller frames hidden
3 smaller frames hidden
SeparateDatabaseAndState.database_forwardsdjango/db/migrations/operations/special.py:37153 ms2.9%
ProjectState.clonedjango/db/migrations/state.py:578153 ms2.9%
ModelState.clonedjango/db/migrations/state.py:949152 ms2.9%
ModelState.__init__django/db/migrations/state.py:759152 ms2.9%
<GC>~152 ms2.9%
1 smaller frames hidden
AlterField.database_forwardsdjango/db/migrations/operations/fields.py:24397 ms1.9%
BaseDatabaseSchemaEditor.alter_fielddjango/db/backends/base/schema.py:96293 ms1.8%
DatabaseSchemaEditor._alter_fielddjango/db/backends/postgresql/schema.py:27492 ms1.8%
BaseDatabaseSchemaEditor._alter_fielddjango/db/backends/base/schema.py:121639 ms0.7%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4839 ms0.7%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21139 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:7939 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9239 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:10339 ms0.7%
Cursor.executepsycopg/cursor.py:11339 ms0.7%
Connection.waitpsycopg/connection.py:49539 ms0.7%
BaseDatabaseSchemaEditor._alter_fielddjango/db/backends/base/schema.py:109030 ms0.6%
BaseDatabaseSchemaEditor._constraint_namesdjango/db/backends/base/schema.py:206030 ms0.6%
DatabaseIntrospection.get_constraintsdjango/db/backends/postgresql/introspection.py:25130 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:7930 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9230 ms0.6%
4 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
SeparateDatabaseAndState.database_forwardsdjango/db/migrations/operations/special.py:3992 ms1.8%
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:39988 ms1.7%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:55988 ms1.7%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4888 ms1.7%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21188 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:7988 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9288 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:10388 ms1.7%
Cursor.executepsycopg/cursor.py:11388 ms1.7%
Connection.waitpsycopg/connection.py:49588 ms1.7%
1 smaller frames hidden
AddIndex.database_forwardsdjango/db/migrations/operations/models.py:90646 ms0.9%
DatabaseSchemaEditor.add_indexdjango/db/backends/postgresql/schema.py:31746 ms0.9%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4546 ms0.9%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21143 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:7943 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9243 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:10343 ms0.8%
Cursor.executepsycopg/cursor.py:11343 ms0.8%
Connection.waitpsycopg/connection.py:49543 ms0.8%
1 smaller frames hidden
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:39928 ms0.5%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:55928 ms0.5%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4828 ms0.5%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21128 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:7928 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9228 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:10328 ms0.5%
Cursor.executepsycopg/cursor.py:11328 ms0.5%
Connection.waitpsycopg/connection.py:49528 ms0.5%
9 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:1181.08 s20.7%
AddField.state_forwardsdjango/db/migrations/operations/fields.py:103440 ms8.5%
ProjectState.add_fielddjango/db/migrations/state.py:269440 ms8.5%
ProjectState.reload_modeldjango/db/migrations/state.py:426403 ms7.7%
ProjectState._reloaddjango/db/migrations/state.py:461393 ms7.5%
StateApps.render_multipledjango/db/migrations/state.py:691388 ms7.4%
ModelState.renderdjango/db/migrations/state.py:989246 ms4.7%
ModelBase.__new__django/db/models/base.py:214142 ms2.7%
ModelBase.add_to_classdjango/db/models/base.py:394134 ms2.6%
Field.contribute_to_classdjango/db/models/fields/__init__.py:99430 ms0.6%
12 smaller frames hidden
1 smaller frames hidden
ModelBase.__new__django/db/models/base.py:14634 ms0.7%
ModelBase.add_to_classdjango/db/models/base.py:39428 ms0.5%
1 smaller frames hidden
14 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:982135 ms2.6%
Field.clonedjango/db/models/fields/__init__.py:71378 ms1.5%
Field.clonedjango/db/models/fields/__init__.py:71239 ms0.7%
1 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
ProjectState.reload_modeldjango/db/migrations/state.py:42536 ms0.7%
ProjectState._find_reload_modeldjango/db/migrations/state.py:38729 ms0.6%
get_related_models_tuplesdjango/db/migrations/state.py:6529 ms0.6%
_get_related_modelsdjango/db/migrations/state.py:4229 ms0.6%
Options.get_fieldsdjango/db/models/options.py:87729 ms0.6%
Options._get_fieldsdjango/db/models/options.py:95029 ms0.6%
cached_property.__get__django/utils/functional.py:4728 ms0.5%
Options._relation_treedjango/db/models/options.py:85028 ms0.5%
4 smaller frames hidden
CreateModel.state_forwardsdjango/db/migrations/operations/models.py:86230 ms4.4%
ProjectState.add_modeldjango/db/migrations/state.py:126230 ms4.4%
ProjectState.reload_modeldjango/db/migrations/state.py:426223 ms4.3%
ProjectState._reloaddjango/db/migrations/state.py:461223 ms4.3%
StateApps.render_multipledjango/db/migrations/state.py:691222 ms4.3%
ModelState.renderdjango/db/migrations/state.py:989172 ms3.3%
ModelBase.__new__django/db/models/base.py:21488 ms1.7%
ModelBase.add_to_classdjango/db/models/base.py:39478 ms1.5%
2 smaller frames hidden
16 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98250 ms1.0%
Field.clonedjango/db/models/fields/__init__.py:71328 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AlterField.state_forwardsdjango/db/migrations/operations/fields.py:227179 ms3.4%
ProjectState.alter_fielddjango/db/migrations/state.py:305177 ms3.4%
ProjectState.reload_modeldjango/db/migrations/state.py:426171 ms3.3%
ProjectState._reloaddjango/db/migrations/state.py:461167 ms3.2%
StateApps.render_multipledjango/db/migrations/state.py:691166 ms3.2%
ModelState.renderdjango/db/migrations/state.py:989100 ms1.9%
ModelBase.__new__django/db/models/base.py:21440 ms0.8%
ModelBase.add_to_classdjango/db/models/base.py:39440 ms0.8%
13 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98236 ms0.7%
3 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
RemoveField.state_forwardsdjango/db/migrations/operations/fields.py:17159 ms1.1%
ProjectState.remove_fielddjango/db/migrations/state.py:27959 ms1.1%
ProjectState.reload_modeldjango/db/migrations/state.py:42656 ms1.1%
ProjectState._reloaddjango/db/migrations/state.py:46156 ms1.1%
StateApps.render_multipledjango/db/migrations/state.py:69155 ms1.1%
ModelState.renderdjango/db/migrations/state.py:98929 ms0.6%
ModelState.renderdjango/db/migrations/state.py:98226 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
AddIndex.state_forwardsdjango/db/migrations/operations/models.py:90159 ms1.1%
ProjectState.add_indexdjango/db/migrations/state.py:22659 ms1.1%
ProjectState._append_optiondjango/db/migrations/state.py:20959 ms1.1%
ProjectState.reload_modeldjango/db/migrations/state.py:42653 ms1.0%
ProjectState._reloaddjango/db/migrations/state.py:46153 ms1.0%
StateApps.render_multipledjango/db/migrations/state.py:69153 ms1.0%
ModelState.renderdjango/db/migrations/state.py:98928 ms0.5%
3 smaller frames hidden
1 smaller frames hidden
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3149 ms0.9%
6 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:11794 ms1.8%
ProjectState.clonedjango/db/migrations/state.py:57874 ms1.4%
ModelState.clonedjango/db/migrations/state.py:94958 ms1.1%
2 smaller frames hidden
3 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:254699 ms13.4%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:178449 ms8.6%
Atomic.__exit__django/db/transaction.py:275447 ms8.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:26445 ms8.6%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:327445 ms8.6%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:303445 ms8.6%
Connection.commitpsycopg/connection.py:309445 ms8.6%
Connection.waitpsycopg/connection.py:495443 ms8.5%
2 smaller frames hidden
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:176250 ms4.8%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:45250 ms4.8%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211242 ms4.7%
CursorWrapper.executedjango/db/backends/utils.py:79242 ms4.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92242 ms4.7%
CursorWrapper._executedjango/db/backends/utils.py:103241 ms4.6%
Cursor.executepsycopg/cursor.py:113240 ms4.6%
Connection.waitpsycopg/connection.py:495240 ms4.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:20640 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28639 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7839 ms0.7%
1 smaller frames hidden
2 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:25997 ms1.9%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:27597 ms1.9%
MigrationRecorder.record_applieddjango/db/migrations/recorder.py:10293 ms1.8%
QuerySet.createdjango/db/models/query.py:73689 ms1.7%
Model.savedjango/db/models/base.py:90489 ms1.7%
Model.save_basedjango/db/models/base.py:99683 ms1.6%
Model._save_tabledjango/db/models/base.py:119982 ms1.6%
Model._do_insertdjango/db/models/base.py:125182 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8782 ms1.6%
QuerySet._insertdjango/db/models/query.py:214182 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193677 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:7977 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9277 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:10577 ms1.5%
Cursor.executepsycopg/cursor.py:11377 ms1.5%
Connection.waitpsycopg/connection.py:49577 ms1.5%
2 smaller frames hidden
2 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:26285 ms1.6%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:27585 ms1.6%
MigrationRecorder.record_applieddjango/db/migrations/recorder.py:10284 ms1.6%
QuerySet.createdjango/db/models/query.py:73684 ms1.6%
Model.savedjango/db/models/base.py:90484 ms1.6%
Model.save_basedjango/db/models/base.py:99684 ms1.6%
Model._save_tabledjango/db/models/base.py:119983 ms1.6%
Model._do_insertdjango/db/models/base.py:125183 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8783 ms1.6%
QuerySet._insertdjango/db/models/query.py:214183 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193677 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:7977 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9277 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:10577 ms1.5%
Cursor.executepsycopg/cursor.py:11377 ms1.5%
Connection.waitpsycopg/connection.py:49577 ms1.5%
2 smaller frames hidden
2 smaller frames hidden
Command.handledjango/core/management/commands/migrate.py:115140 ms2.7%
MigrationExecutor.__init__django/db/migrations/executor.py:18140 ms2.7%
MigrationLoader.__init__django/db/migrations/loader.py:59140 ms2.7%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28290 ms1.7%
MigrationLoader.load_diskdjango/db/migrations/loader.py:12187 ms1.7%
import_module<stdlib>/importlib/__init__.py:8887 ms1.7%
_gcd_import<frozen importlib._bootstrap>:138987 ms1.7%
_find_and_load<frozen importlib._bootstrap>:135385 ms1.6%
_find_and_load_unlocked<frozen importlib._bootstrap>:124978 ms1.5%
_load_unlocked<frozen importlib._bootstrap>:85777 ms1.5%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:74759 ms1.1%
SourceLoader.get_code<frozen importlib._bootstrap_external>:88140 ms0.8%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:81040 ms0.8%
_call_with_frames_removed<frozen importlib._bootstrap>:49138 ms0.7%
4 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:28850 ms1.0%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:8950 ms1.0%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6336 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2636 ms0.7%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32036 ms0.7%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29636 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2636 ms0.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27936 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2636 ms0.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25628 ms0.5%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)28 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2628 ms0.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34528 ms0.5%
Connection.connectpsycopg/connection.py:10928 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
Command.handledjango/core/management/commands/migrate.py:382112 ms2.1%
emit_post_migrate_signaldjango/core/management/sql.py:52112 ms2.1%
Signal.senddjango/dispatch/dispatcher.py:249112 ms2.1%
create_permissionsdjango/contrib/auth/management/__init__.py:10833 ms0.6%
QuerySet.bulk_createdjango/db/models/query.py:90033 ms0.6%
QuerySet._batched_insertdjango/db/models/query.py:217931 ms0.6%
QuerySet._insertdjango/db/models/query.py:214131 ms0.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193630 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:7930 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9230 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:10530 ms0.6%
Cursor.executepsycopg/cursor.py:11330 ms0.6%
Connection.waitpsycopg/connection.py:49530 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
9 smaller frames hidden
Command.handledjango/core/management/commands/migrate.py:36540 ms0.8%
cached_property.__get__django/utils/functional.py:4740 ms0.8%
ProjectState.appsdjango/db/migrations/state.py:59240 ms0.8%
__init____init__:-140 ms0.8%
StateApps.__init__django/db/migrations/state.py:65340 ms0.8%
StateApps.render_multipledjango/db/migrations/state.py:69140 ms0.8%
ModelState.renderdjango/db/migrations/state.py:98934 ms0.7%
1 smaller frames hidden
5 smaller frames hidden
3 smaller frames hidden
BaseDatabaseCreation.create_test_dbdjango/db/backends/base/creation.py:75743 ms14.3%
BaseDatabaseCreation._create_test_dbdjango/db/backends/base/creation.py:229724 ms13.9%
DatabaseCreation._execute_create_test_dbdjango/db/backends/postgresql/creation.py:46724 ms13.9%
BaseDatabaseCreation._execute_create_test_dbdjango/db/backends/base/creation.py:215724 ms13.9%
CursorWrapper.executedjango/db/backends/utils.py:79724 ms13.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92724 ms13.9%
CursorWrapper._executedjango/db/backends/utils.py:103724 ms13.9%
Cursor.executepsycopg/cursor.py:113724 ms13.9%
Connection.waitpsycopg/connection.py:495724 ms13.9%
1 smaller frames hidden
1 smaller frames hidden
TestCase.setUpClassdjango/test/testcases.py:1442 cls.setUpTestData()104 ms2.0%
TestSelectedInstance.setUpTestDataaccounts/tests.py:154100 ms1.9%
call_commanddjango/core/management/__init__.py:19599 ms1.9%
RichCommand.executedjango_rich/management/__init__.py:3499 ms1.9%
BaseCommand.executedjango/core/management/base.py:46699 ms1.9%
Command.handleaccounts/management/commands/indexer.py:27 for account in Account.objects.filter(64 ms1.2%
QuerySet.__iter__django/db/models/query.py:43956 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:226256 ms1.1%
ModelIterable.__iter__django/db/models/query.py:10355 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162545 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:7945 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9245 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:10541 ms0.8%
Cursor.executepsycopg/cursor.py:11341 ms0.8%
Connection.waitpsycopg/connection.py:49541 ms0.8%
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
Command.handleaccounts/management/commands/indexer.py:81 self.console.print("Done 🎉")31 ms0.6%
3 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
call287 ms5.5%
TestSelectedInstance.test_invalid_selected_instanceaccounts/tests.py:247 response = self.client.get("/?selected_instance=invalid")267 ms5.1%
Client.getdjango/test/client.py:1133267 ms5.1%
RequestFactory.getdjango/test/client.py:475267 ms5.1%
RequestFactory.genericdjango/test/client.py:671265 ms5.1%
Client.requestdjango/test/client.py:1091264 ms5.1%
ClientHandler.__call__django/test/client.py:173141 ms2.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63116 ms2.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104113 ms2.2%
WhiteNoise.add_fileswhitenoise/base.py:108113 ms2.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120103 ms2.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131103 ms2.0%
WhiteNoise.get_static_filewhitenoise/base.py:21770 ms1.3%
StaticFile.__init__whitenoise/responders.py:7332 ms0.6%
5 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
2 smaller frames hidden
ClientHandler.__call__django/test/client.py:186124 ms2.4%
BaseHandler.get_responsedjango/core/handlers/base.py:142124 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56124 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380124 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56124 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380121 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56121 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380121 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56121 ms2.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:123121 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56121 ms2.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:145121 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56121 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380121 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56121 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380121 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56121 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380121 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56121 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380121 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56121 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380121 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56121 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38087 ms1.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5687 ms1.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38087 ms1.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5687 ms1.7%
BaseHandler._get_responsedjango/core/handlers/base.py:19987 ms1.7%
indexaccounts/views.py:425 return render(70 ms1.3%
renderdjango/shortcuts.py:2770 ms1.3%
render_to_stringdjango/template/loader.py:6235 ms0.7%
Template.renderdjango/template/backends/django.py:10735 ms0.7%
Template.renderdjango/template/base.py:17527 ms0.5%
instrumented_test_renderdjango/test/utils.py:11327 ms0.5%
NodeList.renderdjango/template/base.py:110827 ms0.5%
Node.render_annotateddjango/template/base.py:106927 ms0.5%
1 smaller frames hidden
render_to_stringdjango/template/loader.py:6134 ms0.7%
3 smaller frames hidden
MiddlewareMixin.__call__django/utils/deprecation.py:37934 ms0.7%
MessageMiddleware.process_requestdjango/contrib/messages/middleware.py:1234 ms0.7%
default_storagedjango/contrib/messages/storage/__init__.py:1234 ms0.7%
FallbackStorage.__init__django/contrib/messages/storage/fallback.py:1534 ms0.7%
BaseStorage.__init__django/contrib/messages/storage/base.py:5734 ms0.7%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]34 ms0.7%
Coverage._should_tracecoverage/control.py:45234 ms0.7%
InOrOut.should_tracecoverage/inorout.py:43934 ms0.7%
InOrOut.check_include_omit_etccoverage/inorout.py:46934 ms0.7%
TreeMatcher.matchcoverage/files.py:27534 ms0.7%
abs_filecoverage/files.py:15834 ms0.7%
realpath<frozen posixpath>:42834 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
Estimated from 4,155 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
accounts/tests.py:247
response = self.client.get("/?selected_instance=invalid")
TestSelectedInstance.test_invalid_selected_instance
· Libraries
|
180 ms |
|
confs/migrations/0031_seed_conference_tags.py:14
ConferenceTag.objects.update_or_create(
seed_conference_tags
· Migrations
|
124 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
70 ms |
|
accounts/management/commands/indexer.py:27
for account in Account.objects.filter(
Command.handle
· Database
|
64 ms |
|
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Migrations
|
44 ms |
|
accounts/management/commands/indexer.py:81
self.console.print("Done 🎉")
Command.handle
· Imports
|
31 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:388
conference, _created = conference_model.objects.get_or_create(slug=spec["slug"], defaults=defaults)
_get_or_create_conference
· Migrations
|
15 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:214
rows = list(model.objects.filter(pk__gt=last_pk).order_by("pk")[:batch_size])
_pk_batches
· Migrations
|
15 ms |
|
accounts/tests.py:250
self.assertIsNone(self.client.session.get("selected_instance"))
TestSelectedInstance.test_invalid_selected_instance
· Database
|
13 ms |
|
accounts/migrations/0035_fix_misskey_activitypub_id.py:22
Account.objects.filter(activitypub_id=F("url"), url__contains="/@").update(
fix_misskey_activitypub_ids
· Migrations
|
13 ms |
Fixtures
Exact setup time| _django_setup_unittest class | 4.81 s |
| django_db_setup session | 4.81 s |
| _unittest_setUpClass_fixture_TestSelectedInstance class | 100 ms |
| django_test_environment session | 0.29 ms |
| django_db_blocker session | 0.26 ms |
| django_db_use_migrations session | 0.12 ms |
| _fail_for_invalid_template_variable session | 0.11 ms |
| _dj_autoclear_mailbox function | 0.06 ms |
| _django_db_marker function | 0.06 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
Database
1119 queries · 2.05 s
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
139×
INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) RETURNING "django_migrations"."id"
45×
SELECT "confs_conferencetag"."id", "confs_conferencetag"."name", "confs_conferencetag"."slug", "confs_conferencetag"."icon" FROM "confs_conferencetag" WHERE "confs_conferencetag"."slug" = %s LIMIT ? FOR UPDATE
45×
INSERT INTO "confs_conferencetag" ("name", "slug", "icon") VALUES (%s, %s, %s) RETURNING "confs_conferencetag"."id"
44×
SELECT "accounts_account"."id", "accounts_account"."account_id", "accounts_account"."instance", "accounts_account"."instance_model_id", "accounts_account"."username_at_instance", "accounts_account"."search", "accounts_account"."username", "accounts_account"."acct", "accounts_account"."display_name"…
22×
SELECT "django_content_type"."model" AS "model" FROM "django_content_type" WHERE "django_content_type"."app_label" = %s
Biggest pieces of work
|
setup fixture django_db_setup (session scope)
pytest_django/fixtures.py:186
|
4.81 s |
|
call test body
accounts/tests.py:247
|
286 ms |
|
setup setUpClass
django/test/testcases.py:1442
|
104 ms |
| call pytest internals | 1 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 | 5.21 s | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 7.04 s | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 7.07 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 4.18 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 7.00 s | Profile |
| 1 month ago | CI github-actions:test | passed | 6.99 s | Profile |
| 1 month ago | CI github-actions:test | passed | 8.54 s | Profile |
| 1 month ago | CI github-actions:test | passed | 6.79 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 6.27 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 4.95 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 9.66 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 10.96 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 11.21 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 280 ms | Run |