Tests / accounts/tests.py
TestSelectedInstance::test_invalid_selected_instance
First seen 2 years, 11 months ago in 1cd3a8d
CI
github-actions:test
11 runs
Average
7.60 s
median 7.00 s
max 11.21 s
max 11.21 s
Phases
Setup 7.21 s
Call 391 ms
Teardown 1 ms
Categories
Migrations 6.24 s
Database 152 ms
App code 2 ms
Other (DB schema, Imports, Libraries, Templates, ...) 1.21 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, 7 hours ago ·
open run
setup6.61 s93.6%
django_db_setuppytest_django/fixtures.py:186 db_cfg = setup_databases(6.44 s91.2%
setup_databasesdjango/test/utils.py:2206.44 s91.1%
BaseDatabaseCreation.create_test_dbdjango/db/backends/base/creation.py:916.29 s89.0%
call_commanddjango/core/management/__init__.py:1956.24 s88.3%
BaseCommand.executedjango/core/management/base.py:4666.24 s88.3%
no_translations.<locals>.wrapperdjango/core/management/base.py:1136.24 s88.3%
Command.handledjango/core/management/commands/migrate.py:3555.83 s82.4%
MigrationExecutor.migratedjango/db/migrations/executor.py:1375.81 s82.2%
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:1695.81 s82.2%
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:2574.60 s65.1%
Migration.applydjango/db/migrations/migration.py:1322.37 s33.6%
AddField.database_forwardsdjango/db/migrations/operations/fields.py:118621 ms8.8%
BaseDatabaseSchemaEditor.add_fielddjango/db/backends/base/schema.py:816414 ms5.9%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48316 ms4.5%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211298 ms4.2%
CursorWrapper.executedjango/db/backends/utils.py:79298 ms4.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92298 ms4.2%
CursorWrapper._executedjango/db/backends/utils.py:103298 ms4.2%
Cursor.executepsycopg/cursor.py:113298 ms4.2%
Connection.waitpsycopg/connection.py:495298 ms4.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:20684 ms1.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28684 ms1.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7884 ms1.2%
2 smaller frames hidden
1 smaller frames hidden
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4582 ms1.2%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21180 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:7980 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9280 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:10380 ms1.1%
Cursor.executepsycopg/cursor.py:11380 ms1.1%
Connection.waitpsycopg/connection.py:49580 ms1.1%
1 smaller frames hidden
1 smaller frames hidden
BaseDatabaseSchemaEditor.add_fielddjango/db/backends/base/schema.py:830163 ms2.3%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48157 ms2.2%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211150 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:79150 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92150 ms2.1%
CursorWrapper._executedjango/db/backends/utils.py:103150 ms2.1%
Cursor.executepsycopg/cursor.py:113148 ms2.1%
Connection.waitpsycopg/connection.py:495148 ms2.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:20648 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28646 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7846 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
RunPython.database_forwardsdjango/db/migrations/operations/special.py:203607 ms8.6%
cached_property.__get__django/utils/functional.py:47314 ms4.4%
ProjectState.appsdjango/db/migrations/state.py:592314 ms4.4%
__init____init__:-1314 ms4.4%
StateApps.__init__django/db/migrations/state.py:653314 ms4.4%
StateApps.render_multipledjango/db/migrations/state.py:691312 ms4.4%
ModelState.renderdjango/db/migrations/state.py:989201 ms2.8%
ModelBase.__new__django/db/models/base.py:21478 ms1.1%
ModelBase.add_to_classdjango/db/models/base.py:39476 ms1.1%
1 smaller frames hidden
ModelBase.__new__django/db/models/base.py:14657 ms0.8%
ModelBase.add_to_classdjango/db/models/base.py:39448 ms0.7%
2 smaller frames hidden
12 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:982103 ms1.5%
Field.clonedjango/db/models/fields/__init__.py:71364 ms0.9%
1 smaller frames hidden
4 smaller frames hidden
1 smaller frames hidden
seed_conference_tagsconfs/migrations/0031_seed_conference_tags.py:14 ConferenceTag.objects.update_or_create(207 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:87207 ms2.9%
QuerySet.update_or_createdjango/db/models/query.py:1096162 ms2.3%
QuerySet.get_or_createdjango/db/models/query.py:106163 ms0.9%
QuerySet.createdjango/db/models/query.py:73662 ms0.9%
Model.savedjango/db/models/base.py:90461 ms0.9%
Model.save_basedjango/db/models/base.py:99661 ms0.9%
Model._save_tabledjango/db/models/base.py:119961 ms0.9%
Model._do_insertdjango/db/models/base.py:125161 ms0.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8761 ms0.9%
QuerySet._insertdjango/db/models/query.py:214150 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193646 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:7946 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9246 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:10543 ms0.6%
Cursor.executepsycopg/cursor.py:11343 ms0.6%
Connection.waitpsycopg/connection.py:49543 ms0.6%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
QuerySet.get_or_createdjango/db/models/query.py:105455 ms0.8%
QuerySet.getdjango/db/models/query.py:70251 ms0.7%
QuerySet.__len__django/db/models/query.py:42151 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:226251 ms0.7%
ModelIterable.__iter__django/db/models/query.py:10349 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162538 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:7938 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9238 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:10538 ms0.5%
Cursor.executepsycopg/cursor.py:11338 ms0.5%
Connection.waitpsycopg/connection.py:49538 ms0.5%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
QuerySet.get_or_createdjango/db/models/query.py:105944 ms0.6%
QuerySet.update_or_createdjango/db/models/query.py:109345 ms0.6%
15 smaller frames hidden
CreateModel.database_forwardsdjango/db/migrations/operations/models.py:100428 ms6.0%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:524401 ms5.7%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:45401 ms5.7%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211400 ms5.7%
CursorWrapper.executedjango/db/backends/utils.py:79400 ms5.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92400 ms5.7%
CursorWrapper._executedjango/db/backends/utils.py:103394 ms5.6%
Cursor.executepsycopg/cursor.py:113394 ms5.6%
Connection.waitpsycopg/connection.py:495394 ms5.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:20648 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28648 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7848 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
AlterField.database_forwardsdjango/db/migrations/operations/fields.py:243188 ms2.7%
BaseDatabaseSchemaEditor.alter_fielddjango/db/backends/base/schema.py:962184 ms2.6%
DatabaseSchemaEditor._alter_fielddjango/db/backends/postgresql/schema.py:274169 ms2.4%
BaseDatabaseSchemaEditor._alter_fielddjango/db/backends/base/schema.py:1216109 ms1.5%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4875 ms1.1%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21175 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:7975 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9275 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:10374 ms1.0%
Cursor.executepsycopg/cursor.py:11374 ms1.0%
Connection.waitpsycopg/connection.py:49574 ms1.0%
1 smaller frames hidden
9 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
SeparateDatabaseAndState.database_forwardsdjango/db/migrations/operations/special.py:37158 ms2.2%
ProjectState.clonedjango/db/migrations/state.py:578158 ms2.2%
ModelState.clonedjango/db/migrations/state.py:949158 ms2.2%
ModelState.__init__django/db/migrations/state.py:759157 ms2.2%
1 smaller frames hidden
SeparateDatabaseAndState.database_forwardsdjango/db/migrations/operations/special.py:39113 ms1.6%
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:399110 ms1.6%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:559110 ms1.6%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48110 ms1.6%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211107 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:79107 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92107 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:103107 ms1.5%
Cursor.executepsycopg/cursor.py:113107 ms1.5%
Connection.waitpsycopg/connection.py:495107 ms1.5%
2 smaller frames hidden
1 smaller frames hidden
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:39975 ms1.1%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:55974 ms1.0%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4874 ms1.0%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21171 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:7971 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9271 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:10371 ms1.0%
Cursor.executepsycopg/cursor.py:11371 ms1.0%
Connection.waitpsycopg/connection.py:49571 ms1.0%
1 smaller frames hidden
1 smaller frames hidden
AddIndex.database_forwardsdjango/db/migrations/operations/models.py:90644 ms0.6%
DatabaseSchemaEditor.add_indexdjango/db/backends/postgresql/schema.py:31744 ms0.6%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4544 ms0.6%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21142 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:7942 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9242 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:10342 ms0.6%
Cursor.executepsycopg/cursor.py:11342 ms0.6%
Connection.waitpsycopg/connection.py:49542 ms0.6%
2 smaller frames hidden
RemoveField.database_forwardsdjango/db/migrations/operations/fields.py:17638 ms0.5%
11 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:1182.15 s30.4%
AddField.state_forwardsdjango/db/migrations/operations/fields.py:103897 ms12.7%
ProjectState.add_fielddjango/db/migrations/state.py:269897 ms12.7%
ProjectState.reload_modeldjango/db/migrations/state.py:426842 ms11.9%
ProjectState._reloaddjango/db/migrations/state.py:461836 ms11.8%
StateApps.render_multipledjango/db/migrations/state.py:691817 ms11.6%
ModelState.renderdjango/db/migrations/state.py:989495 ms7.0%
ModelBase.__new__django/db/models/base.py:214265 ms3.7%
ModelBase.add_to_classdjango/db/models/base.py:394254 ms3.6%
Field.contribute_to_classdjango/db/models/fields/__init__.py:99488 ms1.2%
Options.add_fielddjango/db/models/options.py:35057 ms0.8%
2 smaller frames hidden
ManyToManyField.contribute_to_classdjango/db/models/fields/related.py:209043 ms0.6%
16 smaller frames hidden
1 smaller frames hidden
ModelBase.__new__django/db/models/base.py:38864 ms0.9%
ModelBase.__new__django/db/models/base.py:14646 ms0.7%
ModelBase.add_to_classdjango/db/models/base.py:39436 ms0.5%
3 smaller frames hidden
18 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:982304 ms4.3%
Field.clonedjango/db/models/fields/__init__.py:712153 ms2.2%
ForeignKey.deconstructdjango/db/models/fields/related.py:118137 ms0.5%
28 smaller frames hidden
Field.clonedjango/db/models/fields/__init__.py:713134 ms1.9%
4 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ProjectState.reload_modeldjango/db/migrations/state.py:42555 ms0.8%
ProjectState._find_reload_modeldjango/db/migrations/state.py:38746 ms0.7%
get_related_models_tuplesdjango/db/migrations/state.py:6546 ms0.7%
_get_related_modelsdjango/db/migrations/state.py:4246 ms0.7%
Options.get_fieldsdjango/db/models/options.py:87746 ms0.7%
Options._get_fieldsdjango/db/models/options.py:95046 ms0.7%
cached_property.__get__django/utils/functional.py:4746 ms0.7%
Options._relation_treedjango/db/models/options.py:85046 ms0.7%
4 smaller frames hidden
CreateModel.state_forwardsdjango/db/migrations/operations/models.py:86399 ms5.6%
ProjectState.add_modeldjango/db/migrations/state.py:126399 ms5.6%
ProjectState.reload_modeldjango/db/migrations/state.py:426390 ms5.5%
ProjectState._reloaddjango/db/migrations/state.py:461390 ms5.5%
StateApps.render_multipledjango/db/migrations/state.py:691388 ms5.5%
ModelState.renderdjango/db/migrations/state.py:989202 ms2.9%
ModelBase.__new__django/db/models/base.py:21478 ms1.1%
ModelBase.add_to_classdjango/db/models/base.py:39478 ms1.1%
ModelBase.__new__django/db/models/base.py:14658 ms0.8%
ModelBase.add_to_classdjango/db/models/base.py:39448 ms0.7%
1 smaller frames hidden
12 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:982178 ms2.5%
Field.clonedjango/db/models/fields/__init__.py:713112 ms1.6%
Field.clonedjango/db/models/fields/__init__.py:71257 ms0.8%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AlterField.state_forwardsdjango/db/migrations/operations/fields.py:227276 ms3.9%
ProjectState.alter_fielddjango/db/migrations/state.py:305272 ms3.8%
ProjectState.reload_modeldjango/db/migrations/state.py:426255 ms3.6%
ProjectState._reloaddjango/db/migrations/state.py:461248 ms3.5%
StateApps.render_multipledjango/db/migrations/state.py:691242 ms3.4%
ModelState.renderdjango/db/migrations/state.py:989153 ms2.2%
ModelBase.__new__django/db/models/base.py:21464 ms0.9%
ModelBase.add_to_classdjango/db/models/base.py:39463 ms0.9%
13 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98282 ms1.2%
Field.clonedjango/db/models/fields/__init__.py:71339 ms0.6%
1 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:31208 ms2.9%
AlterField.state_forwardsdjango/db/migrations/operations/fields.py:22778 ms1.1%
ProjectState.alter_fielddjango/db/migrations/state.py:30578 ms1.1%
ProjectState.reload_modeldjango/db/migrations/state.py:42675 ms1.1%
ProjectState._reloaddjango/db/migrations/state.py:46174 ms1.0%
StateApps.render_multipledjango/db/migrations/state.py:69174 ms1.0%
ModelState.renderdjango/db/migrations/state.py:98964 ms0.9%
ModelBase.__new__django/db/models/base.py:37748 ms0.7%
deepcopy<stdlib>/copy.py:15648 ms0.7%
_reconstruct<stdlib>/copy.py:25448 ms0.7%
deepcopy<stdlib>/copy.py:13048 ms0.7%
_deepcopy_dict<stdlib>/copy.py:20148 ms0.7%
deepcopy<stdlib>/copy.py:16148 ms0.7%
_keep_alive<stdlib>/copy.py:24048 ms0.7%
<GC>~48 ms0.7%
5 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
RemoveConstraint.state_forwardsdjango/db/migrations/operations/models.py:120946 ms0.7%
ProjectState.remove_constraintdjango/db/migrations/state.py:24946 ms0.7%
ProjectState._remove_optiondjango/db/migrations/state.py:21546 ms0.7%
ProjectState.reload_modeldjango/db/migrations/state.py:42645 ms0.6%
ProjectState._reloaddjango/db/migrations/state.py:46144 ms0.6%
StateApps.render_multipledjango/db/migrations/state.py:69144 ms0.6%
ModelState.renderdjango/db/migrations/state.py:98237 ms0.5%
Field.clonedjango/db/models/fields/__init__.py:71237 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
CreateModel.state_forwardsdjango/db/migrations/operations/models.py:8636 ms0.5%
ProjectState.add_modeldjango/db/migrations/state.py:12636 ms0.5%
ProjectState.reload_modeldjango/db/migrations/state.py:42636 ms0.5%
ProjectState._reloaddjango/db/migrations/state.py:46136 ms0.5%
3 smaller frames hidden
RemoveField.state_forwardsdjango/db/migrations/operations/fields.py:171118 ms1.7%
ProjectState.remove_fielddjango/db/migrations/state.py:279118 ms1.7%
ProjectState.reload_modeldjango/db/migrations/state.py:426116 ms1.6%
ProjectState._reloaddjango/db/migrations/state.py:461107 ms1.5%
StateApps.render_multipledjango/db/migrations/state.py:691107 ms1.5%
ModelState.renderdjango/db/migrations/state.py:98969 ms1.0%
ModelState.renderdjango/db/migrations/state.py:98237 ms0.5%
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:65778 ms1.1%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:19078 ms1.1%
ProjectState.reload_modeldjango/db/migrations/state.py:42676 ms1.1%
ProjectState._reloaddjango/db/migrations/state.py:46176 ms1.1%
StateApps.render_multipledjango/db/migrations/state.py:69169 ms1.0%
ModelState.renderdjango/db/migrations/state.py:98955 ms0.8%
ModelBase.__new__django/db/models/base.py:21445 ms0.6%
ModelBase.add_to_classdjango/db/models/base.py:39445 ms0.6%
ManyToManyField.contribute_to_classdjango/db/models/fields/related.py:209043 ms0.6%
create_many_to_many_intermediary_modeldjango/db/models/fields/related.py:142643 ms0.6%
ModelBase.__new__django/db/models/base.py:17843 ms0.6%
subclass_exceptiondjango/db/models/base.py:8043 ms0.6%
2 smaller frames hidden
5 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AddIndex.state_forwardsdjango/db/migrations/operations/models.py:90176 ms1.1%
ProjectState.add_indexdjango/db/migrations/state.py:22676 ms1.1%
ProjectState._append_optiondjango/db/migrations/state.py:20976 ms1.1%
ProjectState.reload_modeldjango/db/migrations/state.py:42670 ms1.0%
ProjectState._reloaddjango/db/migrations/state.py:46168 ms1.0%
StateApps.render_multipledjango/db/migrations/state.py:69165 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
6 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:11776 ms1.1%
ProjectState.clonedjango/db/migrations/state.py:57855 ms0.8%
ModelState.clonedjango/db/migrations/state.py:94951 ms0.7%
2 smaller frames hidden
1 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:254860 ms12.2%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:178493 ms7.0%
Atomic.__exit__django/db/transaction.py:275489 ms6.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:26489 ms6.9%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:327489 ms6.9%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:303489 ms6.9%
Connection.commitpsycopg/connection.py:309489 ms6.9%
Connection.waitpsycopg/connection.py:495489 ms6.9%
1 smaller frames hidden
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:176363 ms5.1%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:45363 ms5.1%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211344 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:79344 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92344 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:103342 ms4.8%
Cursor.executepsycopg/cursor.py:113342 ms4.8%
Connection.waitpsycopg/connection.py:495342 ms4.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:20665 ms0.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28663 ms0.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7863 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
2 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:262224 ms3.2%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:275224 ms3.2%
MigrationRecorder.record_applieddjango/db/migrations/recorder.py:102224 ms3.2%
QuerySet.createdjango/db/models/query.py:736222 ms3.1%
Model.savedjango/db/models/base.py:904222 ms3.1%
Model.save_basedjango/db/models/base.py:996221 ms3.1%
Model._save_tabledjango/db/models/base.py:1199220 ms3.1%
Model._do_insertdjango/db/models/base.py:1251220 ms3.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:87220 ms3.1%
QuerySet._insertdjango/db/models/query.py:2141220 ms3.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:1936219 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:79219 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92219 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:105219 ms3.1%
Cursor.executepsycopg/cursor.py:113219 ms3.1%
Connection.waitpsycopg/connection.py:495219 ms3.1%
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:259126 ms1.8%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:275126 ms1.8%
MigrationRecorder.record_applieddjango/db/migrations/recorder.py:102119 ms1.7%
QuerySet.createdjango/db/models/query.py:736107 ms1.5%
Model.savedjango/db/models/base.py:904103 ms1.5%
Model.save_basedjango/db/models/base.py:996103 ms1.5%
Model._save_tabledjango/db/models/base.py:119997 ms1.4%
Model._do_insertdjango/db/models/base.py:125196 ms1.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8796 ms1.4%
QuerySet._insertdjango/db/models/query.py:214193 ms1.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193683 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:7983 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9282 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:10581 ms1.1%
Cursor.executepsycopg/cursor.py:11381 ms1.1%
Connection.waitpsycopg/connection.py:49581 ms1.1%
2 smaller frames hidden
2 smaller frames hidden
2 smaller frames hidden
2 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
Command.handledjango/core/management/commands/migrate.py:115197 ms2.8%
MigrationExecutor.__init__django/db/migrations/executor.py:18197 ms2.8%
MigrationLoader.__init__django/db/migrations/loader.py:59197 ms2.8%
MigrationLoader.build_graphdjango/db/migrations/loader.py:282148 ms2.1%
MigrationLoader.load_diskdjango/db/migrations/loader.py:121135 ms1.9%
import_module<stdlib>/importlib/__init__.py:88135 ms1.9%
_gcd_import<frozen importlib._bootstrap>:1389135 ms1.9%
_find_and_load<frozen importlib._bootstrap>:1353132 ms1.9%
_find_and_load_unlocked<frozen importlib._bootstrap>:1249108 ms1.5%
_load_unlocked<frozen importlib._bootstrap>:857108 ms1.5%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:75157 ms0.8%
_call_with_frames_removed<frozen importlib._bootstrap>:49157 ms0.8%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:74751 ms0.7%
2 smaller frames hidden
2 smaller frames hidden
3 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:28845 ms0.6%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:8945 ms0.6%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6336 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2636 ms0.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32036 ms0.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29636 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2636 ms0.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27936 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2636 ms0.5%
2 smaller frames hidden
2 smaller frames hidden
Command.handledjango/core/management/commands/migrate.py:382176 ms2.5%
emit_post_migrate_signaldjango/core/management/sql.py:52176 ms2.5%
Signal.senddjango/dispatch/dispatcher.py:249176 ms2.5%
create_permissionsdjango/contrib/auth/management/__init__.py:6246 ms0.7%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:14036 ms0.5%
2 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:8140 ms0.6%
ContentTypeManager.get_for_modelsdjango/contrib/contenttypes/models.py:9138 ms0.5%
QuerySet.__iter__django/db/models/query.py:43938 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:226238 ms0.5%
ModelIterable.__iter__django/db/models/query.py:10338 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162537 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:7937 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9237 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:10537 ms0.5%
Cursor.executepsycopg/cursor.py:11337 ms0.5%
Connection.waitpsycopg/connection.py:49537 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:10839 ms0.6%
QuerySet.bulk_createdjango/db/models/query.py:90039 ms0.6%
QuerySet._batched_insertdjango/db/models/query.py:217939 ms0.6%
QuerySet._insertdjango/db/models/query.py:214139 ms0.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193637 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:7937 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9237 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:10537 ms0.5%
Cursor.executepsycopg/cursor.py:11337 ms0.5%
Connection.waitpsycopg/connection.py:49537 ms0.5%
2 smaller frames hidden
6 smaller frames hidden
6 smaller frames hidden
call_commanddjango/core/management/__init__.py:11836 ms0.5%
load_command_classdjango/core/management/__init__.py:4836 ms0.5%
import_module<stdlib>/importlib/__init__.py:8836 ms0.5%
_gcd_import<frozen importlib._bootstrap>:138936 ms0.5%
2 smaller frames hidden
BaseDatabaseCreation.create_test_dbdjango/db/backends/base/creation.py:75150 ms2.1%
BaseDatabaseCreation._create_test_dbdjango/db/backends/base/creation.py:229125 ms1.8%
DatabaseCreation._execute_create_test_dbdjango/db/backends/postgresql/creation.py:46125 ms1.8%
BaseDatabaseCreation._execute_create_test_dbdjango/db/backends/base/creation.py:215125 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:79125 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92125 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:103125 ms1.8%
Cursor.executepsycopg/cursor.py:113125 ms1.8%
Connection.waitpsycopg/connection.py:495125 ms1.8%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
TestCase.setUpClassdjango/test/testcases.py:1442 cls.setUpTestData()154 ms2.2%
TestSelectedInstance.setUpTestDataaccounts/tests.py:154135 ms1.9%
call_commanddjango/core/management/__init__.py:195133 ms1.9%
RichCommand.executedjango_rich/management/__init__.py:34133 ms1.9%
BaseCommand.executedjango/core/management/base.py:466133 ms1.9%
Command.handleaccounts/management/commands/indexer.py:27 for account in Account.objects.filter(108 ms1.5%
QuerySet.__iter__django/db/models/query.py:43997 ms1.4%
QuerySet._fetch_alldjango/db/models/query.py:226297 ms1.4%
ModelIterable.__iter__django/db/models/query.py:10396 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162586 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:7986 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9286 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:10570 ms1.0%
Cursor.executepsycopg/cursor.py:11370 ms1.0%
Connection.waitpsycopg/connection.py:49570 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20637 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
5 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
5 smaller frames hidden
call454 ms6.4%
TestSelectedInstance.test_invalid_selected_instanceaccounts/tests.py:247 response = self.client.get("/?selected_instance=invalid")445 ms6.3%
Client.getdjango/test/client.py:1133445 ms6.3%
RequestFactory.getdjango/test/client.py:475445 ms6.3%
RequestFactory.genericdjango/test/client.py:671442 ms6.3%
Client.requestdjango/test/client.py:1091442 ms6.3%
ClientHandler.__call__django/test/client.py:186270 ms3.8%
BaseHandler.get_responsedjango/core/handlers/base.py:142269 ms3.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56269 ms3.8%
MiddlewareMixin.__call__django/utils/deprecation.py:380269 ms3.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56269 ms3.8%
MiddlewareMixin.__call__django/utils/deprecation.py:380268 ms3.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56268 ms3.8%
MiddlewareMixin.__call__django/utils/deprecation.py:380268 ms3.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56268 ms3.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:123268 ms3.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56268 ms3.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:145268 ms3.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56268 ms3.8%
MiddlewareMixin.__call__django/utils/deprecation.py:380261 ms3.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56261 ms3.7%
MiddlewareMixin.__call__django/utils/deprecation.py:380182 ms2.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56182 ms2.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380182 ms2.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56182 ms2.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380182 ms2.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56182 ms2.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380182 ms2.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56182 ms2.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380177 ms2.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56177 ms2.5%
MiddlewareMixin.__call__django/utils/deprecation.py:380177 ms2.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56177 ms2.5%
BaseHandler._get_responsedjango/core/handlers/base.py:199177 ms2.5%
indexaccounts/views.py:425 return render(130 ms1.8%
renderdjango/shortcuts.py:27130 ms1.8%
render_to_stringdjango/template/loader.py:6279 ms1.1%
Template.renderdjango/template/backends/django.py:10779 ms1.1%
Template.renderdjango/template/base.py:17578 ms1.1%
instrumented_test_renderdjango/test/utils.py:11378 ms1.1%
NodeList.renderdjango/template/base.py:110878 ms1.1%
Node.render_annotateddjango/template/base.py:106978 ms1.1%
ExtendsNode.renderdjango/template/loader_tags.py:16072 ms1.0%
instrumented_test_renderdjango/test/utils.py:11372 ms1.0%
NodeList.renderdjango/template/base.py:110872 ms1.0%
Node.render_annotateddjango/template/base.py:106971 ms1.0%
BlockNode.renderdjango/template/loader_tags.py:6658 ms0.8%
NodeList.renderdjango/template/base.py:110858 ms0.8%
Node.render_annotateddjango/template/base.py:106958 ms0.8%
SimpleNode.renderdjango/template/library.py:34348 ms0.7%
heroicon_outlineheroicons/templatetags/heroicons.py:2348 ms0.7%
_render_iconheroicons/templatetags/heroicons.py:4148 ms0.7%
_render_iconheroicons/__init__.py:4748 ms0.7%
_load_iconheroicons/__init__.py:1848 ms0.7%
ZipFile.__init__<stdlib>/zipfile/__init__.py:150548 ms0.7%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:160639 ms0.6%
4 smaller frames hidden
3 smaller frames hidden
5 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
render_to_stringdjango/template/loader.py:6150 ms0.7%
1 smaller frames hidden
4 smaller frames hidden
1 smaller frames hidden
MiddlewareMixin.__call__django/utils/deprecation.py:37979 ms1.1%
LocaleMiddleware.process_requestdjango/middleware/locale.py:2474 ms1.1%
is_language_prefix_patterns_useddjango/conf/urls/i18n.py:3174 ms1.1%
cached_property.__get__django/utils/functional.py:4774 ms1.1%
URLResolver.url_patternsdjango/urls/resolvers.py:72974 ms1.1%
cached_property.__get__django/utils/functional.py:4774 ms1.1%
URLResolver.urlconf_moduledjango/urls/resolvers.py:72274 ms1.1%
import_module<stdlib>/importlib/__init__.py:8873 ms1.0%
_gcd_import<frozen importlib._bootstrap>:138973 ms1.0%
_find_and_load<frozen importlib._bootstrap>:135373 ms1.0%
_find_and_load_unlocked<frozen importlib._bootstrap>:124973 ms1.0%
_load_unlocked<frozen importlib._bootstrap>:85773 ms1.0%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:75168 ms1.0%
_call_with_frames_removed<frozen importlib._bootstrap>:49168 ms1.0%
<module>fedidevs/urls.py:23 from django.contrib.sitemaps.views import sitemap41 ms0.6%
_find_and_load<frozen importlib._bootstrap>:135341 ms0.6%
_find_and_load_unlocked<frozen importlib._bootstrap>:124940 ms0.6%
_load_unlocked<frozen importlib._bootstrap>:85740 ms0.6%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:75140 ms0.6%
_call_with_frames_removed<frozen importlib._bootstrap>:49140 ms0.6%
<module>django/contrib/sitemaps/views.py:1038 ms0.5%
2 smaller frames hidden
1 smaller frames hidden
9 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:173166 ms2.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63117 ms1.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104114 ms1.6%
WhiteNoise.add_fileswhitenoise/base.py:108114 ms1.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12084 ms1.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13183 ms1.2%
WhiteNoise.get_static_filewhitenoise/base.py:21772 ms1.0%
StaticFile.__init__whitenoise/responders.py:7338 ms0.5%
6 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
BaseHandler.load_middlewaredjango/core/handlers/base.py:4250 ms0.7%
import_stringdjango/utils/module_loading.py:3050 ms0.7%
cached_importdjango/utils/module_loading.py:1550 ms0.7%
import_module<stdlib>/importlib/__init__.py:8850 ms0.7%
_gcd_import<frozen importlib._bootstrap>:138950 ms0.7%
_find_and_load<frozen importlib._bootstrap>:135346 ms0.7%
_find_and_load_unlocked<frozen importlib._bootstrap>:124944 ms0.6%
_load_unlocked<frozen importlib._bootstrap>:85744 ms0.6%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:75141 ms0.6%
_call_with_frames_removed<frozen importlib._bootstrap>:49141 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
2 smaller frames hidden
3 smaller frames hidden
Estimated from 5,955 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/migrations/0031_seed_conference_tags.py:14
ConferenceTag.objects.update_or_create(
seed_conference_tags
· Migrations
|
207 ms |
|
accounts/tests.py:247
response = self.client.get("/?selected_instance=invalid")
TestSelectedInstance.test_invalid_selected_instance
· Libraries
|
197 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
127 ms |
|
accounts/management/commands/indexer.py:27
for account in Account.objects.filter(
Command.handle
· Database
|
108 ms |
|
fedidevs/urls.py:23
from django.contrib.sitemaps.views import sitemap
<module>
· Imports
|
41 ms |
|
accounts/views.py:434
reverse("index", kwargs={"lang": lang}), request.GET, ["t", "f", "post"]
index
· Libraries
|
29 ms |
|
accounts/management/commands/indexer.py:81
self.console.print("Done 🎉")
Command.handle
· Libraries
|
18 ms |
|
accounts/tests.py:100
Account.objects.create(
TestSelectedInstance.setUpTestData
· Database
|
15 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
|
13 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
|
12 ms |
Fixtures
Exact setup time| _django_setup_unittest class | 6.44 s |
| django_db_setup session | 6.44 s |
| _unittest_setUpClass_fixture_TestSelectedInstance class | 161 ms |
| _django_db_marker function | 2 ms |
| django_test_environment session | 0.45 ms |
| django_db_blocker session | 0.45 ms |
| _fail_for_invalid_template_variable session | 0.22 ms |
| django_db_use_migrations session | 0.18 ms |
| _template_string_if_invalid_marker function | 0.12 ms |
| _live_server_helper function | 0.09 ms |
Database
1119 queries · 2.33 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
|
6.45 s |
|
call test body
accounts/tests.py:247
|
445 ms |
|
setup setUpClass
django/test/testcases.py:1442
|
154 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
5 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
5 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 7.07 s | Profile |
| 16 hours ago | CI github-actions:test | passed | 4.18 s | Profile |
| 22 hours ago | CI github-actions:test | passed | 7.00 s | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 6.99 s | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 8.54 s | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 6.79 s | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 6.27 s | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 4.95 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 9.66 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 10.96 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 11.21 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 280 ms | Run |