Tests / confs/tests.py
TestConferencePage::test_conference_with_pacific_with_date_no_posts
First seen 2 years, 1 month ago in 6af392e
CI
github-actions:test
11 runs
Average
154 ms
median 119 ms
max 309 ms
max 309 ms
Phases
Setup 2 ms
Call 151 ms
Teardown 0.47 ms
Categories
Database 33 ms
App code 0.44 ms
Test code 0.28 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 120 ms
12 database queries per run
Needs 346 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call105 ms97.3%
TestConferencePage.test_conference_with_pacific_with_date_no_postsconfs/tests.py:893 response = self.client.get(self.url + "?date=2021-01-02")101 ms93.8%
Client.getdjango/test/client.py:1133101 ms93.8%
RequestFactory.getdjango/test/client.py:475101 ms93.8%
RequestFactory.genericdjango/test/client.py:671101 ms93.8%
Client.requestdjango/test/client.py:1091101 ms93.8%
ClientHandler.__call__django/test/client.py:18688 ms81.1%
BaseHandler.get_responsedjango/core/handlers/base.py:14288 ms81.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5688 ms81.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12386 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14586 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38086 ms79.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5686 ms79.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19986 ms79.9%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)86 ms79.9%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18986 ms79.9%
_conference_detailconfs/views.py:268 page_obj = paginator.get_page(page_number)75 ms69.5%
Paginator.get_pagedjango/core/paginator.py:16175 ms69.5%
Paginator.validate_numberdjango/core/paginator.py:15375 ms69.5%
cached_property.__get__django/utils/functional.py:4775 ms69.5%
Paginator.num_pagesdjango/core/paginator.py:18875 ms69.5%
cached_property.__get__django/utils/functional.py:4775 ms69.5%
Paginator.countdjango/core/paginator.py:18275 ms69.5%
QuerySet.countdjango/db/models/query.py:67775 ms69.5%
Query.get_countdjango/db/models/sql/query.py:65775 ms69.5%
Query.get_aggregationdjango/db/models/sql/query.py:63975 ms69.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162575 ms69.5%
CursorWrapper.executedjango/db/backends/utils.py:7975 ms69.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9275 ms69.5%
CursorWrapper._executedjango/db/backends/utils.py:10575 ms69.5%
Cursor.executepsycopg/cursor.py:11464 ms59.1%
Cursor.executepsycopg/cursor.py:11311 ms10.4%
Connection.waitpsycopg/connection.py:49511 ms10.4%
_conference_detailconfs/views.py:296 return render(9 ms8.1%
renderdjango/shortcuts.py:279 ms8.1%
render_to_stringdjango/template/loader.py:629 ms8.1%
Template.renderdjango/template/backends/django.py:1079 ms8.1%
Template.renderdjango/template/base.py:1759 ms8.1%
instrumented_test_renderdjango/test/utils.py:1139 ms8.1%
NodeList.renderdjango/template/base.py:11089 ms8.1%
Node.render_annotateddjango/template/base.py:10699 ms8.1%
ExtendsNode.renderdjango/template/loader_tags.py:1609 ms8.1%
instrumented_test_renderdjango/test/utils.py:1139 ms8.1%
NodeList.renderdjango/template/base.py:11089 ms8.1%
Node.render_annotateddjango/template/base.py:10699 ms8.1%
IfNode.renderdjango/template/defaulttags.py:3335 ms4.6%
NodeList.renderdjango/template/base.py:11085 ms4.6%
Node.render_annotateddjango/template/base.py:10695 ms4.6%
SimpleNode.renderdjango/template/library.py:3434 ms3.5%
heroicon_outlineheroicons/templatetags/heroicons.py:234 ms3.5%
_render_iconheroicons/templatetags/heroicons.py:414 ms3.5%
_render_iconheroicons/__init__.py:654 ms3.5%
tostring<stdlib>/xml/etree/ElementTree.py:11064 ms3.5%
ElementTree.write<stdlib>/xml/etree/ElementTree.py:7434 ms3.5%
_namespaces<stdlib>/xml/etree/ElementTree.py:8554 ms3.5%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms1.2%
Template.renderdjango/template/base.py:1771 ms1.2%
instrumented_test_renderdjango/test/utils.py:1131 ms1.2%
NodeList.renderdjango/template/base.py:11081 ms1.2%
Node.render_annotateddjango/template/base.py:10691 ms1.2%
SimpleNode.renderdjango/template/library.py:3431 ms1.2%
instances_datalistaccounts/templatetags/account_extras.py:34 instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)1 ms1.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.2%
QuerySet.filterdjango/db/models/query.py:16761 ms1.2%
QuerySet._filter_or_excludedjango/db/models/query.py:16941 ms1.2%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17041 ms1.2%
Query.add_qdjango/db/models/sql/query.py:16811 ms1.2%
Query._add_qdjango/db/models/sql/query.py:17081 ms1.2%
BlockNode.renderdjango/template/loader_tags.py:663 ms2.3%
NodeList.renderdjango/template/base.py:11083 ms2.3%
Node.render_annotateddjango/template/base.py:10693 ms2.3%
IfNode.renderdjango/template/defaulttags.py:3333 ms2.3%
NodeList.renderdjango/template/base.py:11083 ms2.3%
Node.render_annotateddjango/template/base.py:10693 ms2.3%
ForNode.renderdjango/template/defaulttags.py:2491 ms1.2%
Node.render_annotateddjango/template/base.py:10691 ms1.2%
IfNode.renderdjango/template/defaulttags.py:3331 ms1.2%
NodeList.renderdjango/template/base.py:11081 ms1.2%
Node.render_annotateddjango/template/base.py:10691 ms1.2%
URLNode.renderdjango/template/defaulttags.py:5111 ms1.2%
reversedjango/urls/base.py:981 ms1.2%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:7621 ms1.2%
URLResolver.reverse_dictdjango/urls/resolvers.py:6311 ms1.2%
get_languagedjango/utils/translation/__init__.py:2111 ms1.2%
get_languagedjango/utils/translation/trans_real.py:3291 ms1.2%
Local.__getattr__asgiref/local.py:1571 ms1.2%
contextmanager.<locals>.helper<stdlib>/contextlib.py:367 return _GeneratorContextManager(func, args, kwds)1 ms1.2%
_GeneratorContextManagerBase.__init__<stdlib>/contextlib.py:1751 ms1.2%
SimpleNode.renderdjango/template/library.py:3431 ms1.2%
heroicon_outlineheroicons/templatetags/heroicons.py:231 ms1.2%
_render_iconheroicons/templatetags/heroicons.py:411 ms1.2%
_render_iconheroicons/__init__.py:471 ms1.2%
deepcopy<stdlib>/copy.py:1371 ms1.2%
deepcopy<stdlib>/copy.py:1561 ms1.2%
_reconstruct<stdlib>/copy.py:2641 ms1.2%
StaticNode.renderdjango/templatetags/static.py:1161 ms1.2%
StaticNode.urldjango/templatetags/static.py:1131 ms1.2%
StaticNode.handle_simpledjango/templatetags/static.py:1291 ms1.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:201 ms1.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2351 ms1.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2071 ms1.2%
urldefrag<stdlib>/urllib/parse.py:7841 ms1.2%
<lambda><string>:11 ms1.2%
_conference_detailconfs/views.py:2763 ms2.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)3 ms2.3%
QuerySet.__iter__django/db/models/query.py:4393 ms2.3%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms2.3%
ModelIterable.__iter__django/db/models/query.py:1033 ms2.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms2.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.3%
Cursor.executepsycopg/cursor.py:1133 ms2.3%
Connection.waitpsycopg/connection.py:4953 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3821 ms1.2%
AnonymousCacheMiddleware.process_responsefedidevs/middleware.py:52 response["Cache-Control"] = f"public, s-maxage={ANONYMOUS_CACHE_TTL}"1 ms1.2%
HttpResponseBase.__setitem__django/http/response.py:2031 ms1.2%
ResponseHeaders.__setitem__django/http/response.py:941 ms1.2%
ResponseHeaders._convert_to_charsetdjango/http/response.py:601 ms1.2%
ClientHandler.__call__django/test/client.py:17314 ms12.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6314 ms12.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms12.7%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms12.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1208 ms6.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1316 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:2175 ms4.6%
StaticFile.__init__whitenoise/responders.py:771 ms1.2%
StaticFile.get_alternativeswhitenoise/responders.py:2061 ms1.2%
compile<stdlib>/re/__init__.py:2911 ms1.2%
_compile<stdlib>/re/__init__.py:3341 ms1.2%
StaticFile.__init__whitenoise/responders.py:761 ms1.2%
StaticFile.__init__whitenoise/responders.py:731 ms1.2%
StaticFile.get_headerswhitenoise/responders.py:1761 ms1.2%
formatdate<stdlib>/email/utils.py:2661 ms1.2%
StaticFile.__init__whitenoise/responders.py:721 ms1.2%
StaticFile.get_file_statswhitenoise/responders.py:1611 ms1.2%
__init____init__:-11 ms1.2%
FileEntry.__init__whitenoise/responders.py:2631 ms1.2%
WhiteNoise.get_static_filewhitenoise/base.py:2121 ms1.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2331 ms1.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1761 ms1.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1971 ms1.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:201 ms1.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2351 ms1.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2161 ms1.2%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2041 ms1.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms5.8%
scantreewhitenoise/base.py:2716 ms5.8%
scantreewhitenoise/base.py:2715 ms4.6%
scantreewhitenoise/base.py:2733 ms2.3%
scantreewhitenoise/base.py:2713 ms2.3%
scantreewhitenoise/base.py:2713 ms2.3%
scantreewhitenoise/base.py:2711 ms1.2%
scantreewhitenoise/base.py:2731 ms1.2%
scantreewhitenoise/base.py:2731 ms1.2%
scantreewhitenoise/base.py:2691 ms1.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms2.3%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms1.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.2%
Cursor.executepsycopg/cursor.py:1131 ms1.2%
Connection.waitpsycopg/connection.py:4951 ms1.2%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms1.2%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms1.2%
Atomic.__exit__django/db/transaction.py:2981 ms1.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.2%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.2%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.2%
Cursor.executepsycopg/cursor.py:1131 ms1.2%
Connection.waitpsycopg/connection.py:4951 ms1.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.2%
TestConferencePage.test_conference_with_pacific_with_date_no_postsconfs/tests.py:891 self.conference.save()1 ms1.2%
Model.savedjango/db/models/base.py:9041 ms1.2%
Model.save_basedjango/db/models/base.py:9961 ms1.2%
Model._save_tabledjango/db/models/base.py:11401 ms1.2%
Model._do_updatedjango/db/models/base.py:12441 ms1.2%
QuerySet._updatedjango/db/models/query.py:14481 ms1.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21501 ms1.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21211 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.2%
Cursor.executepsycopg/cursor.py:1131 ms1.2%
Connection.waitpsycopg/connection.py:4951 ms1.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.2%
teardown2 ms1.5%
contextmanager.<locals>.helper<stdlib>/contextlib.py:367 return _GeneratorContextManager(func, args, kwds)2 ms1.5%
_GeneratorContextManagerBase.__init__<stdlib>/contextlib.py:1742 ms1.5%
Estimated from 85 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail
· Database
|
75 ms |
|
confs/tests.py:893
response = self.client.get(self.url + "?date=2021-01-02")
TestConferencePage.test_conference_with_pacific_with_date_no_posts
· Libraries
|
14 ms |
|
confs/views.py:296
return render(
_conference_detail
· Templates
|
8 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
|
3 ms |
|
confs/tests.py:891
self.conference.save()
TestConferencePage.test_conference_with_pacific_with_date_no_posts
· Database
|
1 ms |
|
accounts/templatetags/account_extras.py:34
instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)
instances_datalist
· Database
|
1 ms |
|
fedidevs/middleware.py:52
response["Cache-Control"] = f"public, s-maxage={ANONYMOUS_CACHE_TTL}"
AnonymousCacheMiddleware.process_response
· Libraries
|
1 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_isolate_apps function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
12 queries · 14 msNo repeated queries.
Biggest pieces of work
|
call test body
confs/tests.py:893
|
103 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
3 ms |
|
teardown helper
<stdlib>/contextlib.py:367
|
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 | 108 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 48 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 88 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 119 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 111 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 134 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 309 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 95 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 265 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 218 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 198 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 87 ms | Run |