Tests / confs/tests.py
TestSyncAnnouncements::test_is_idempotent_and_refreshes_unposted_content
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
3.41 s
median 3.93 s
max 8.58 s
max 8.58 s
Phases
Setup 3.32 s
Call 96 ms
Teardown 0.77 ms
Categories
Migrations 2.98 s
Database 33 ms
Factories 0.88 ms
App code 0.44 ms
Other (DB schema, Imports, Libraries, pytest, ...) 402 ms
587 database queries per run
Needs 18 MB of memory (max 39 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup4.95 s98.3%
django_db_setuppytest_django/fixtures.py:186 db_cfg = setup_databases(4.95 s98.2%
setup_databasesdjango/test/utils.py:2204.95 s98.2%
BaseDatabaseCreation.create_test_dbdjango/db/backends/base/creation.py:914.16 s82.6%
call_commanddjango/core/management/__init__.py:1954.15 s82.4%
BaseCommand.executedjango/core/management/base.py:4664.15 s82.4%
no_translations.<locals>.wrapperdjango/core/management/base.py:1134.15 s82.3%
Command.handledjango/core/management/commands/migrate.py:3553.93 s78.0%
MigrationExecutor.migratedjango/db/migrations/executor.py:1373.92 s77.7%
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:1693.92 s77.7%
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:2572.98 s59.2%
Migration.applydjango/db/migrations/migration.py:1321.48 s29.4%
AddField.database_forwardsdjango/db/migrations/operations/fields.py:118459 ms9.1%
BaseDatabaseSchemaEditor.add_fielddjango/db/backends/base/schema.py:816311 ms6.2%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48247 ms4.9%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211241 ms4.8%
CursorWrapper.executedjango/db/backends/utils.py:79241 ms4.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92240 ms4.8%
CursorWrapper._executedjango/db/backends/utils.py:103239 ms4.7%
Cursor.executepsycopg/cursor.py:113239 ms4.7%
Connection.waitpsycopg/connection.py:495239 ms4.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:20664 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28664 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7864 ms1.3%
1 smaller frames hidden
2 smaller frames hidden
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4555 ms1.1%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21149 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:7949 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9249 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:10348 ms0.9%
Cursor.executepsycopg/cursor.py:11348 ms0.9%
Connection.waitpsycopg/connection.py:49548 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
BaseDatabaseSchemaEditor.add_fielddjango/db/backends/base/schema.py:830126 ms2.5%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48124 ms2.5%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211118 ms2.3%
CursorWrapper.executedjango/db/backends/utils.py:79118 ms2.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92118 ms2.3%
CursorWrapper._executedjango/db/backends/utils.py:103118 ms2.3%
Cursor.executepsycopg/cursor.py:113118 ms2.3%
Connection.waitpsycopg/connection.py:495118 ms2.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:20631 ms0.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28631 ms0.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7831 ms0.6%
2 smaller frames hidden
1 smaller frames hidden
5 smaller frames hidden
RunPython.database_forwardsdjango/db/migrations/operations/special.py:203377 ms7.5%
cached_property.__get__django/utils/functional.py:47179 ms3.5%
ProjectState.appsdjango/db/migrations/state.py:592179 ms3.5%
__init____init__:-1179 ms3.5%
StateApps.__init__django/db/migrations/state.py:653179 ms3.5%
StateApps.render_multipledjango/db/migrations/state.py:691179 ms3.5%
ModelState.renderdjango/db/migrations/state.py:989110 ms2.2%
ModelBase.__new__django/db/models/base.py:21442 ms0.8%
ModelBase.add_to_classdjango/db/models/base.py:39440 ms0.8%
13 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98267 ms1.3%
Field.clonedjango/db/models/fields/__init__.py:71336 ms0.7%
Field.clonedjango/db/models/fields/__init__.py:71229 ms0.6%
seed_conference_tagsconfs/migrations/0031_seed_conference_tags.py:14 ConferenceTag.objects.update_or_create(114 ms2.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:87114 ms2.3%
QuerySet.update_or_createdjango/db/models/query.py:109692 ms1.8%
QuerySet.get_or_createdjango/db/models/query.py:105437 ms0.7%
QuerySet.getdjango/db/models/query.py:70234 ms0.7%
QuerySet.__len__django/db/models/query.py:42134 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:226234 ms0.7%
ModelIterable.__iter__django/db/models/query.py:10334 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162529 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:7929 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9229 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:10528 ms0.6%
Cursor.executepsycopg/cursor.py:11328 ms0.6%
Connection.waitpsycopg/connection.py:49528 ms0.6%
3 smaller frames hidden
1 smaller frames hidden
QuerySet.get_or_createdjango/db/models/query.py:106129 ms0.6%
QuerySet.createdjango/db/models/query.py:73629 ms0.6%
Model.savedjango/db/models/base.py:90429 ms0.6%
Model.save_basedjango/db/models/base.py:99628 ms0.6%
Model._save_tabledjango/db/models/base.py:119928 ms0.6%
Model._do_insertdjango/db/models/base.py:125128 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8728 ms0.6%
QuerySet._insertdjango/db/models/query.py:214128 ms0.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193626 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%
2 smaller frames hidden
QuerySet.get_or_createdjango/db/models/query.py:105926 ms0.5%
1 smaller frames hidden
17 smaller frames hidden
CreateModel.database_forwardsdjango/db/migrations/operations/models.py:100229 ms4.5%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:524206 ms4.1%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:45206 ms4.1%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211205 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:79205 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92205 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:103202 ms4.0%
Cursor.executepsycopg/cursor.py:113202 ms4.0%
Connection.waitpsycopg/connection.py:495202 ms4.0%
1 smaller frames hidden
3 smaller frames hidden
AlterField.database_forwardsdjango/db/migrations/operations/fields.py:24399 ms2.0%
BaseDatabaseSchemaEditor.alter_fielddjango/db/backends/base/schema.py:96299 ms2.0%
DatabaseSchemaEditor._alter_fielddjango/db/backends/postgresql/schema.py:27498 ms1.9%
BaseDatabaseSchemaEditor._alter_fielddjango/db/backends/base/schema.py:121649 ms1.0%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4849 ms1.0%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21148 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:7948 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9248 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:10348 ms0.9%
Cursor.executepsycopg/cursor.py:11348 ms0.9%
Connection.waitpsycopg/connection.py:49548 ms0.9%
1 smaller frames hidden
9 smaller frames hidden
1 smaller frames hidden
SeparateDatabaseAndState.database_forwardsdjango/db/migrations/operations/special.py:3988 ms1.7%
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:39986 ms1.7%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:55986 ms1.7%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4885 ms1.7%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21185 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:7985 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9285 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:10385 ms1.7%
Cursor.executepsycopg/cursor.py:11385 ms1.7%
Connection.waitpsycopg/connection.py:49585 ms1.7%
1 smaller frames hidden
1 smaller frames hidden
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:39978 ms1.6%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:55978 ms1.6%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4878 ms1.6%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21178 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:7978 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9278 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:10378 ms1.6%
Cursor.executepsycopg/cursor.py:11378 ms1.6%
Connection.waitpsycopg/connection.py:49578 ms1.6%
RemoveField.database_forwardsdjango/db/migrations/operations/fields.py:17653 ms1.0%
BaseDatabaseSchemaEditor.remove_fielddjango/db/backends/base/schema.py:86238 ms0.8%
BaseDatabaseSchemaEditor._constraint_namesdjango/db/backends/base/schema.py:206038 ms0.8%
DatabaseIntrospection.get_constraintsdjango/db/backends/postgresql/introspection.py:25136 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:7936 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9236 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:10536 ms0.7%
Cursor.executepsycopg/cursor.py:11336 ms0.7%
Connection.waitpsycopg/connection.py:49536 ms0.7%
1 smaller frames hidden
2 smaller frames hidden
AlterTogetherOptionOperation.database_forwardsdjango/db/migrations/operations/models.py:66937 ms0.7%
BaseDatabaseSchemaEditor.alter_unique_togetherdjango/db/backends/base/schema.py:63537 ms0.7%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4836 ms0.7%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21134 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:7934 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9234 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:10334 ms0.7%
Cursor.executepsycopg/cursor.py:11334 ms0.7%
Connection.waitpsycopg/connection.py:49534 ms0.7%
1 smaller frames hidden
AddIndex.database_forwardsdjango/db/migrations/operations/models.py:90631 ms0.6%
DatabaseSchemaEditor.add_indexdjango/db/backends/postgresql/schema.py:31731 ms0.6%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4531 ms0.6%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21131 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:7931 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9228 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:10328 ms0.6%
Cursor.executepsycopg/cursor.py:11328 ms0.6%
Connection.waitpsycopg/connection.py:49528 ms0.6%
1 smaller frames hidden
9 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:1181.41 s28.0%
AddField.state_forwardsdjango/db/migrations/operations/fields.py:103562 ms11.1%
ProjectState.add_fielddjango/db/migrations/state.py:269562 ms11.1%
ProjectState.reload_modeldjango/db/migrations/state.py:426512 ms10.2%
ProjectState._reloaddjango/db/migrations/state.py:461505 ms10.0%
StateApps.render_multipledjango/db/migrations/state.py:691495 ms9.8%
ModelState.renderdjango/db/migrations/state.py:989263 ms5.2%
ModelBase.__new__django/db/models/base.py:214135 ms2.7%
ModelBase.add_to_classdjango/db/models/base.py:394127 ms2.5%
ManyToManyField.contribute_to_classdjango/db/models/fields/related.py:209037 ms0.7%
Field.contribute_to_classdjango/db/models/fields/__init__.py:99426 ms0.5%
9 smaller frames hidden
ModelBase.__new__django/db/models/base.py:14631 ms0.6%
ModelBase.__new__django/db/models/base.py:38828 ms0.6%
13 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:982224 ms4.4%
Field.clonedjango/db/models/fields/__init__.py:713114 ms2.3%
Field.clonedjango/db/models/fields/__init__.py:71282 ms1.6%
2 smaller frames hidden
4 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ProjectState.reload_modeldjango/db/migrations/state.py:42549 ms1.0%
ProjectState._find_reload_modeldjango/db/migrations/state.py:38734 ms0.7%
get_related_models_tuplesdjango/db/migrations/state.py:6534 ms0.7%
_get_related_modelsdjango/db/migrations/state.py:4233 ms0.7%
Options.get_fieldsdjango/db/models/options.py:87733 ms0.7%
Options._get_fieldsdjango/db/models/options.py:95033 ms0.7%
cached_property.__get__django/utils/functional.py:4733 ms0.7%
Options._relation_treedjango/db/models/options.py:85033 ms0.7%
6 smaller frames hidden
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:31229 ms4.5%
RemoveConstraint.state_forwardsdjango/db/migrations/operations/models.py:1209169 ms3.4%
ProjectState.remove_constraintdjango/db/migrations/state.py:249169 ms3.4%
ProjectState._remove_optiondjango/db/migrations/state.py:215169 ms3.4%
ProjectState.reload_modeldjango/db/migrations/state.py:425157 ms3.1%
ProjectState._find_reload_modeldjango/db/migrations/state.py:387157 ms3.1%
get_related_models_tuplesdjango/db/migrations/state.py:65157 ms3.1%
_get_related_modelsdjango/db/migrations/state.py:42157 ms3.1%
Options.get_fieldsdjango/db/models/options.py:877157 ms3.1%
Options._get_fieldsdjango/db/models/options.py:950157 ms3.1%
cached_property.__get__django/utils/functional.py:47157 ms3.1%
Options._relation_treedjango/db/models/options.py:850157 ms3.1%
Options._populate_directed_relation_graphdjango/db/models/options.py:826157 ms3.1%
Options._get_fieldsdjango/db/models/options.py:970157 ms3.1%
make_immutable_fields_listdjango/db/models/options.py:86157 ms3.1%
<GC>~157 ms3.1%
1 smaller frames hidden
CreateModel.state_forwardsdjango/db/migrations/operations/models.py:8633 ms0.7%
ProjectState.add_modeldjango/db/migrations/state.py:12633 ms0.7%
ProjectState.reload_modeldjango/db/migrations/state.py:42633 ms0.7%
ProjectState._reloaddjango/db/migrations/state.py:46133 ms0.7%
StateApps.render_multipledjango/db/migrations/state.py:69133 ms0.7%
4 smaller frames hidden
AlterField.state_forwardsdjango/db/migrations/operations/fields.py:227222 ms4.4%
ProjectState.alter_fielddjango/db/migrations/state.py:305219 ms4.3%
ProjectState.reload_modeldjango/db/migrations/state.py:426213 ms4.2%
ProjectState._reloaddjango/db/migrations/state.py:461213 ms4.2%
StateApps.render_multipledjango/db/migrations/state.py:691213 ms4.2%
ModelState.renderdjango/db/migrations/state.py:989138 ms2.7%
ModelBase.__new__django/db/models/base.py:21467 ms1.3%
ModelBase.add_to_classdjango/db/models/base.py:39462 ms1.2%
1 smaller frames hidden
12 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98273 ms1.5%
Field.clonedjango/db/models/fields/__init__.py:71340 ms0.8%
Field.clonedjango/db/models/fields/__init__.py:71228 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
CreateModel.state_forwardsdjango/db/migrations/operations/models.py:86182 ms3.6%
ProjectState.add_modeldjango/db/migrations/state.py:126182 ms3.6%
ProjectState.reload_modeldjango/db/migrations/state.py:426178 ms3.5%
ProjectState._reloaddjango/db/migrations/state.py:461178 ms3.5%
StateApps.render_multipledjango/db/migrations/state.py:691175 ms3.5%
ModelState.renderdjango/db/migrations/state.py:98992 ms1.8%
ModelBase.__new__django/db/models/base.py:21429 ms0.6%
ModelBase.add_to_classdjango/db/models/base.py:39428 ms0.6%
11 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98282 ms1.6%
Field.clonedjango/db/models/fields/__init__.py:71245 ms0.9%
ForeignKey.deconstructdjango/db/models/fields/related.py:118136 ms0.7%
ForeignObject.deconstructdjango/db/models/fields/related.py:75733 ms0.7%
RelatedField.swappable_settingdjango/db/models/fields/related.py:46433 ms0.7%
Apps.get_swappable_settings_namedjango/apps/registry.py:29632 ms0.6%
Apps.get_modelsdjango/apps/registry.py:18427 ms0.5%
<GC>~27 ms0.5%
1 smaller frames hidden
2 smaller frames hidden
7 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AddIndex.state_forwardsdjango/db/migrations/operations/models.py:901108 ms2.1%
ProjectState.add_indexdjango/db/migrations/state.py:226108 ms2.1%
ProjectState._append_optiondjango/db/migrations/state.py:209108 ms2.1%
ProjectState.reload_modeldjango/db/migrations/state.py:426107 ms2.1%
ProjectState._reloaddjango/db/migrations/state.py:461105 ms2.1%
StateApps.render_multipledjango/db/migrations/state.py:691100 ms2.0%
ModelState.renderdjango/db/migrations/state.py:98969 ms1.4%
ModelBase.__new__django/db/models/base.py:21447 ms0.9%
ModelBase.add_to_classdjango/db/models/base.py:39337 ms0.7%
_has_contribute_to_classdjango/db/models/base.py:9237 ms0.7%
isclass<stdlib>/inspect.py:18637 ms0.7%
1 smaller frames hidden
7 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98232 ms0.6%
Field.clonedjango/db/models/fields/__init__.py:71329 ms0.6%
TextField.__init__django/db/models/fields/__init__.py:252926 ms0.5%
Field.__init__django/db/models/fields/__init__.py:25426 ms0.5%
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:17147 ms0.9%
ProjectState.remove_fielddjango/db/migrations/state.py:27947 ms0.9%
ProjectState.reload_modeldjango/db/migrations/state.py:42647 ms0.9%
ProjectState._reloaddjango/db/migrations/state.py:46147 ms0.9%
StateApps.render_multipledjango/db/migrations/state.py:69147 ms0.9%
ModelState.renderdjango/db/migrations/state.py:98932 ms0.6%
1 smaller frames hidden
7 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:11783 ms1.7%
ProjectState.clonedjango/db/migrations/state.py:57860 ms1.2%
ModelState.clonedjango/db/migrations/state.py:94938 ms0.8%
5 smaller frames hidden
2 smaller frames hidden
2 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:254742 ms14.7%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:178485 ms9.6%
Atomic.__exit__django/db/transaction.py:275485 ms9.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:26484 ms9.6%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:327484 ms9.6%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:303484 ms9.6%
Connection.commitpsycopg/connection.py:309484 ms9.6%
Connection.waitpsycopg/connection.py:495484 ms9.6%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:176254 ms5.0%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:45254 ms5.0%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211249 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:79249 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92249 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:103246 ms4.9%
Cursor.executepsycopg/cursor.py:113246 ms4.9%
Connection.waitpsycopg/connection.py:495246 ms4.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:20632 ms0.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28632 ms0.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7832 ms0.6%
2 smaller frames hidden
1 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:259104 ms2.1%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:275104 ms2.1%
MigrationRecorder.record_applieddjango/db/migrations/recorder.py:102100 ms2.0%
QuerySet.createdjango/db/models/query.py:73694 ms1.9%
Model.savedjango/db/models/base.py:90494 ms1.9%
Model.save_basedjango/db/models/base.py:99694 ms1.9%
Model._save_tabledjango/db/models/base.py:119993 ms1.8%
Model._do_insertdjango/db/models/base.py:125193 ms1.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8793 ms1.8%
QuerySet._insertdjango/db/models/query.py:214191 ms1.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193675 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:7973 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9271 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:10571 ms1.4%
Cursor.executepsycopg/cursor.py:11371 ms1.4%
Connection.waitpsycopg/connection.py:49571 ms1.4%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:26287 ms1.7%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:27587 ms1.7%
MigrationRecorder.record_applieddjango/db/migrations/recorder.py:10287 ms1.7%
QuerySet.createdjango/db/models/query.py:73686 ms1.7%
Model.savedjango/db/models/base.py:90486 ms1.7%
Model.save_basedjango/db/models/base.py:99685 ms1.7%
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:214181 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193676 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:7976 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9276 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:10575 ms1.5%
Cursor.executepsycopg/cursor.py:11375 ms1.5%
Connection.waitpsycopg/connection.py:49573 ms1.5%
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
Command.handledjango/core/management/commands/migrate.py:115105 ms2.1%
MigrationExecutor.__init__django/db/migrations/executor.py:18105 ms2.1%
MigrationLoader.__init__django/db/migrations/loader.py:59105 ms2.1%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28267 ms1.3%
MigrationLoader.load_diskdjango/db/migrations/loader.py:12138 ms0.8%
import_module<stdlib>/importlib/__init__.py:8838 ms0.8%
_gcd_import<frozen importlib._bootstrap>:138938 ms0.8%
_find_and_load<frozen importlib._bootstrap>:135337 ms0.7%
MigrationLoader.load_diskdjango/db/migrations/loader.py:8728 ms0.6%
import_module<stdlib>/importlib/__init__.py:8828 ms0.6%
_gcd_import<frozen importlib._bootstrap>:138928 ms0.6%
_find_and_load<frozen importlib._bootstrap>:135328 ms0.6%
_find_and_load_unlocked<frozen importlib._bootstrap>:123827 ms0.5%
_find_spec<frozen importlib._bootstrap>:116427 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:28834 ms0.7%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:8934 ms0.7%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6327 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2627 ms0.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32027 ms0.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29627 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2627 ms0.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27927 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2627 ms0.5%
1 smaller frames hidden
3 smaller frames hidden
Command.handledjango/core/management/commands/migrate.py:38294 ms1.9%
emit_post_migrate_signaldjango/core/management/sql.py:5294 ms1.9%
Signal.senddjango/dispatch/dispatcher.py:24994 ms1.9%
create_permissionsdjango/contrib/auth/management/__init__.py:10839 ms0.8%
QuerySet.bulk_createdjango/db/models/query.py:90039 ms0.8%
QuerySet._batched_insertdjango/db/models/query.py:217939 ms0.8%
QuerySet._insertdjango/db/models/query.py:214139 ms0.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193638 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:7938 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9238 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:10537 ms0.7%
Cursor.executepsycopg/cursor.py:11337 ms0.7%
Connection.waitpsycopg/connection.py:49537 ms0.7%
1 smaller frames hidden
7 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
BaseDatabaseCreation.create_test_dbdjango/db/backends/base/creation.py:75789 ms15.6%
BaseDatabaseCreation._create_test_dbdjango/db/backends/base/creation.py:229762 ms15.1%
DatabaseCreation._execute_create_test_dbdjango/db/backends/postgresql/creation.py:46762 ms15.1%
BaseDatabaseCreation._execute_create_test_dbdjango/db/backends/base/creation.py:215762 ms15.1%
CursorWrapper.executedjango/db/backends/utils.py:79762 ms15.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92762 ms15.1%
CursorWrapper._executedjango/db/backends/utils.py:103762 ms15.1%
Cursor.executepsycopg/cursor.py:113762 ms15.1%
Connection.waitpsycopg/connection.py:495762 ms15.1%
BaseDatabaseCreation._create_test_dbdjango/db/backends/base/creation.py:22727 ms0.5%
DatabaseWrapper._nodb_cursordjango/db/backends/postgresql/base.py:52027 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
call87 ms1.7%
TestSyncAnnouncements.test_is_idempotent_and_refreshes_unposted_contentconfs/tests.py:1011 self._sync()65 ms1.3%
TestSyncAnnouncements._syncconfs/tests.py:937 call_command("syncannouncements")63 ms1.3%
call_commanddjango/core/management/__init__.py:19562 ms1.2%
RichCommand.executedjango_rich/management/__init__.py:3462 ms1.2%
BaseCommand.executedjango/core/management/base.py:46662 ms1.2%
Command.handleconfs/management/commands/syncannouncements.py:1348 ms1.0%
sync_upcomingconfs/conference_announcements.py:10845 ms0.9%
sync_conferenceconfs/conference_announcements.py:8639 ms0.8%
content_forconfs/conference_announcements.py:63 url = SITE_URL + reverse("conference", kwargs={"conference_slug": conference.slug})39 ms0.8%
reversedjango/urls/base.py:9839 ms0.8%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:76039 ms0.8%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
7 smaller frames hidden
Estimated from 4,112 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
|
114 ms |
|
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Migrations
|
43 ms |
|
confs/conference_announcements.py:63
url = SITE_URL + reverse("conference", kwargs={"conference_slug": conference.slug})
content_for
· Libraries
|
21 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/management/commands/syncannouncements.py:14
self.console.print("Done syncing announcements 🎉")
Command.handle
· Imports
|
14 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:398
legacy_accounts = list(account_model.objects.all())
migrate_legacy_pair
· Migrations
|
9 ms |
|
confs/tests.py:933
return baker.make(Conference, **defaults)
TestSyncAnnouncements._conference
· Imports
|
8 ms |
|
confs/conference_announcements.py:85
announcement = announcement_model.objects.create(
sync_conference
· Database
|
6 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:325
counts = list(
_refresh_account_counts
· Migrations
|
6 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
|
6 ms |
Fixtures
Exact setup time| _django_setup_unittest class | 4.95 s |
| django_db_setup session | 4.95 s |
| django_db_blocker session | 0.36 ms |
| django_test_environment session | 0.33 ms |
| _unittest_setUpClass_fixture_TestSyncAnnouncements class | 0.31 ms |
| _fail_for_invalid_template_variable session | 0.13 ms |
| django_db_use_migrations session | 0.11 ms |
| django_db_modify_db_settings_xdist_suffix session | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
Database
1075 queries · 2.07 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"
22×
SELECT "django_content_type"."model" AS "model" FROM "django_content_type" WHERE "django_content_type"."app_label" = %s
11×
SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type" WHERE ("django_content_type"."app_label" = %s AND "django_content_type"."model" IN (…))
Biggest pieces of work
|
setup fixture django_db_setup (session scope)
pytest_django/fixtures.py:186
|
4.95 s |
|
call test body
confs/tests.py:1011
|
85 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
|
setup setUpClass
django/test/testcases.py:1418
|
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.04 s | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 6.69 s | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 6.58 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 3.93 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 6.67 s | Profile |
| 1 month ago | CI github-actions:test | passed | 6.64 s | Profile |
| 1 month ago | CI github-actions:test | passed | 8.58 s | Profile |
| 1 month ago | CI github-actions:test | passed | 31 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 39 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 25 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 40 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 46 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 34 ms | Run |