Tests / confs/tests.py
TestMigratedLegacyConferences::test_dotnetconf_page
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
188 ms
median 144 ms
max 436 ms
max 436 ms
Phases
Setup 2 ms
Call 184 ms
Teardown 2 ms
Categories
Database 30 ms
App code 0.94 ms
Other (Libraries, Templates, Imports, pytest, ...) 157 ms
11 database queries per run
Needs 1 MB of memory (max 3 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call89 ms93.9%
TestMigratedLegacyConferences.test_dotnetconf_pageconfs/tests.py:180 response = self._assert_no_naive_warning(reverse("dotnetconf"))84 ms88.6%
TestMigratedLegacyConferences._assert_no_naive_warningconfs/tests.py:152 response = self.client.get(url)84 ms88.6%
Client.getdjango/test/client.py:113384 ms88.6%
RequestFactory.getdjango/test/client.py:47584 ms88.6%
RequestFactory.genericdjango/test/client.py:67184 ms88.6%
Client.requestdjango/test/client.py:109184 ms88.6%
ClientHandler.__call__django/test/client.py:18677 ms81.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14277 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38077 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38077 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38077 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12377 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14577 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38077 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38077 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38077 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38077 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38077 ms81.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5677 ms81.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38074 ms77.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5674 ms77.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38074 ms77.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5674 ms77.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19974 ms77.9%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)74 ms77.9%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18974 ms77.9%
_conference_detailconfs/views.py:173 conference = get_object_or_404(Conference, slug=conference_slug)55 ms58.5%
get_object_or_404django/shortcuts.py:10055 ms58.5%
QuerySet.getdjango/db/models/query.py:70254 ms56.7%
QuerySet.__len__django/db/models/query.py:42154 ms56.7%
QuerySet._fetch_alldjango/db/models/query.py:226254 ms56.7%
ModelIterable.__iter__django/db/models/query.py:10352 ms54.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162547 ms49.6%
CursorWrapper.executedjango/db/backends/utils.py:7947 ms49.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9247 ms49.6%
CursorWrapper._executedjango/db/backends/utils.py:10545 ms47.8%
Cursor.executepsycopg/cursor.py:11345 ms47.8%
Connection.waitpsycopg/connection.py:49545 ms47.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:20645 ms47.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28645 ms47.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7845 ms47.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16123 ms3.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7683 ms3.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.8%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.8%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2652 ms1.8%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10312 ms1.8%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:912 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16232 ms1.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.8%
ModelIterable.__iter__django/db/models/query.py:1152 ms1.8%
QuerySet.getdjango/db/models/query.py:6922 ms1.8%
QuerySet.filterdjango/db/models/query.py:16762 ms1.8%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms1.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms1.8%
Query.add_qdjango/db/models/sql/query.py:16812 ms1.8%
Query._add_qdjango/db/models/sql/query.py:17092 ms1.8%
_conference_detailconfs/views.py:2765 ms5.3%
_conference_detail.<locals>.<genexpr>confs/views.py:276 current_account = next((account for account in account_counts if account.account.id == account_id), None)5 ms5.3%
QuerySet.__iter__django/db/models/query.py:4395 ms5.3%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms5.3%
ModelIterable.__iter__django/db/models/query.py:993 ms3.5%
Query.get_compilerdjango/db/models/sql/query.py:3742 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.8%
Cursor.executepsycopg/cursor.py:1132 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.8%
ModelIterable.__iter__django/db/models/query.py:1032 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
_conference_detailconfs/views.py:204 .count()3 ms3.5%
QuerySet.countdjango/db/models/query.py:6773 ms3.5%
Query.get_countdjango/db/models/sql/query.py:6562 ms1.8%
Query.get_countdjango/db/models/sql/query.py:6572 ms1.8%
Query.get_aggregationdjango/db/models/sql/query.py:6392 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.8%
Cursor.executepsycopg/cursor.py:1132 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.8%
_conference_detailconfs/views.py:296 return render(3 ms3.5%
renderdjango/shortcuts.py:273 ms3.5%
render_to_stringdjango/template/loader.py:623 ms3.5%
Template.renderdjango/template/backends/django.py:1073 ms3.5%
Template.renderdjango/template/base.py:1753 ms3.5%
instrumented_test_renderdjango/test/utils.py:1133 ms3.5%
NodeList.renderdjango/template/base.py:11083 ms3.5%
Node.render_annotateddjango/template/base.py:10693 ms3.5%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms3.5%
instrumented_test_renderdjango/test/utils.py:1133 ms3.5%
NodeList.renderdjango/template/base.py:11083 ms3.5%
Node.render_annotateddjango/template/base.py:10693 ms3.5%
IfNode.renderdjango/template/defaulttags.py:3333 ms3.5%
NodeList.renderdjango/template/base.py:11083 ms3.5%
Node.render_annotateddjango/template/base.py:10693 ms3.5%
VariableNode.renderdjango/template/base.py:11672 ms1.8%
FilterExpression.resolvedjango/template/base.py:8062 ms1.8%
Variable.resolvedjango/template/base.py:9452 ms1.8%
Variable._resolve_lookupdjango/template/base.py:9962 ms1.8%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms1.8%
Template.renderdjango/template/base.py:1772 ms1.8%
instrumented_test_renderdjango/test/utils.py:1132 ms1.8%
NodeList.renderdjango/template/base.py:11082 ms1.8%
Node.render_annotateddjango/template/base.py:10692 ms1.8%
SimpleNode.renderdjango/template/library.py:3432 ms1.8%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:2 ms1.8%
QuerySet.__iter__django/db/models/query.py:4392 ms1.8%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.8%
FlatValuesListIterable.__iter__django/db/models/query.py:3022 ms1.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.8%
Cursor.executepsycopg/cursor.py:1132 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.8%
_conference_detailconfs/views.py:1752 ms1.8%
Conference.posts_after_datetimeconfs/models.py:199 return dt.datetime.combine(self.posts_after, dt.time.min, tzinfo=zoneinfo.ZoneInfo(self.time_zone))2 ms1.8%
_conference_detailconfs/views.py:223 .annotate(count=Count("id"))2 ms1.8%
QuerySet.annotatedjango/db/models/query.py:18422 ms1.8%
QuerySet._annotatedjango/db/models/query.py:18942 ms1.8%
Query.add_annotationdjango/db/models/sql/query.py:12432 ms1.8%
Count.resolve_expressiondjango/db/models/aggregates.py:3122 ms1.8%
Aggregate.resolve_expressiondjango/db/models/aggregates.py:1252 ms1.8%
_conference_detailconfs/views.py:226 counts_dict = {c["created_at_date"].date(): c["count"] for c in counts}2 ms1.8%
QuerySet.__iter__django/db/models/query.py:4392 ms1.8%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.8%
ValuesIterable.__iter__django/db/models/query.py:2472 ms1.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
_conference_detailconfs/views.py:268 page_obj = paginator.get_page(page_number)2 ms1.8%
Paginator.get_pagedjango/core/paginator.py:1612 ms1.8%
Paginator.validate_numberdjango/core/paginator.py:1532 ms1.8%
cached_property.__get__django/utils/functional.py:472 ms1.8%
Paginator.num_pagesdjango/core/paginator.py:1882 ms1.8%
cached_property.__get__django/utils/functional.py:472 ms1.8%
Paginator.countdjango/core/paginator.py:1822 ms1.8%
QuerySet.countdjango/db/models/query.py:6772 ms1.8%
Query.get_countdjango/db/models/sql/query.py:6572 ms1.8%
Query.get_aggregationdjango/db/models/sql/query.py:6392 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.8%
Cursor.executepsycopg/cursor.py:1132 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3793 ms3.5%
MessageMiddleware.process_requestdjango/contrib/messages/middleware.py:122 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1832 ms1.8%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3152 ms1.8%
URLResolver.resolvedjango/urls/resolvers.py:6782 ms1.8%
URLPattern.resolvedjango/urls/resolvers.py:4772 ms1.8%
ClientHandler.__call__django/test/client.py:1735 ms5.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:633 ms3.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1043 ms3.5%
WhiteNoise.add_fileswhitenoise/base.py:1083 ms3.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1203 ms3.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1313 ms3.5%
WhiteNoise.get_static_filewhitenoise/base.py:2173 ms3.5%
StaticFile.__init__whitenoise/responders.py:772 ms1.8%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms1.8%
__init____init__:-12 ms1.8%
StaticFile.__init__whitenoise/responders.py:732 ms1.8%
StaticFile.get_headerswhitenoise/responders.py:1672 ms1.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:972 ms1.8%
convert_exception_to_responsedjango/core/handlers/exception.py:382 ms1.8%
iscoroutinefunction<stdlib>/inspect.py:336 return _has_code_flag(obj, CO_COROUTINE) or _has_coroutine_mark(obj)2 ms1.8%
_has_code_flag<stdlib>/inspect.py:2992 ms1.8%
_signature_is_functionlike<stdlib>/inspect.py:21012 ms1.8%
ClientHandler.__call__django/test/client.py:1762 ms1.8%
Signal.senddjango/dispatch/dispatcher.py:2492 ms1.8%
reset_queriesdjango/db/__init__.py:482 ms1.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms3.5%
TestCase._fixture_teardowndjango/test/testcases.py:14983 ms3.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.8%
Cursor.executepsycopg/cursor.py:1132 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4962 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.8%
Cursor.executepsycopg/cursor.py:1132 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
teardown5 ms5.0%
TestContextDecorator.__exit__django/test/utils.py:436 self.disable()3 ms3.0%
override_settings.disabledjango/test/utils.py:5313 ms3.0%
Signal.send_robustdjango/dispatch/dispatcher.py:3702 ms2.0%
Signal.send_robustdjango/dispatch/dispatcher.py:3620.94 ms1.0%
Signal._live_receiversdjango/dispatch/dispatcher.py:5010.94 ms1.0%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)0.94 ms1.0%
TestCase._rollback_atomicsdjango/test/testcases.py:14080.94 ms1.0%
Atomic.__exit__django/db/transaction.py:3070.94 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.94 ms1.0%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3370.94 ms1.0%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3080.94 ms1.0%
Connection.rollbackpsycopg/connection.py:3140.94 ms1.0%
Connection.waitpsycopg/connection.py:4950.94 ms1.0%
BaseConnection._rollback_genpsycopg/_connection_base.py:6170.94 ms1.0%
BaseConnection._exec_commandpsycopg/_connection_base.py:4740.94 ms1.0%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()0.94 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.94 ms1.0%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3550.94 ms1.0%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4080.94 ms1.0%
Connection.closepsycopg/connection.py:2010.94 ms1.0%
Estimated from 58 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/views.py:173
conference = get_object_or_404(Conference, slug=conference_slug)
_conference_detail
· Database
|
55 ms |
|
confs/tests.py:152
response = self.client.get(url)
TestMigratedLegacyConferences._assert_no_naive_warning
· Libraries
|
10 ms |
|
confs/views.py:276
current_account = next((account for account in account_counts if account.account.id == account_id), None)
_conference_detail.<locals>.<genexpr>
· Database
|
5 ms |
|
confs/views.py:204
.count()
_conference_detail
· Database
|
3 ms |
|
confs/models.py:199
return dt.datetime.combine(self.posts_after, dt.time.min, tzinfo=zoneinfo.ZoneInfo(self.time_zone))
Conference.posts_after_datetime
· App code
|
2 ms |
|
confs/views.py:223
.annotate(count=Count("id"))
_conference_detail
· Database
|
2 ms |
|
confs/views.py:226
counts_dict = {c["created_at_date"].date(): c["count"] for c in counts}
_conference_detail
· Database
|
2 ms |
|
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail
· Database
|
2 ms |
|
confs/views.py:296
return render(
_conference_detail
· Templates
|
2 ms |
|
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.08 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _django_db_marker function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_isolate_apps function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _django_clear_site_cache function | 0.04 ms |
| monkeypatch function | 0.03 ms |
Database
11 queries · 7 msNo repeated queries.
Biggest pieces of work
|
call test body
confs/tests.py:180
|
84 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
3 ms |
|
teardown __exit__
django/test/utils.py:436
|
3 ms |
|
teardown tearDownClass
django/test/testcases.py:1456
|
2 ms |
| call pytest internals | 2 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 | 95 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 69 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 81 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 108 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 96 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 204 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 222 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 144 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 367 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 436 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 244 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 177 ms | Run |