Tests / confs/tests.py
TestConferencePage::test_conference_with_pacific_with_date
First seen 2 years ago in 6af392e
CI
github-actions:test
4 runs
Average
570 ms
median 617 ms
max 680 ms
max 680 ms
Phases
Setup 3 ms
Call 566 ms
Teardown 0.70 ms
Categories
Database 27 ms
App code 0.78 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 542 ms
16 database queries per run
Needs 492 KB of memory (max 712 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call365 ms99.7%
TestConferencePage.test_conference_with_pacific_with_dateconfs/tests.py:884 response = self.client.get(self.url + "?date=2021-01-01")360 ms98.5%
Client.getdjango/test/client.py:1133360 ms98.5%
RequestFactory.getdjango/test/client.py:475360 ms98.5%
RequestFactory.genericdjango/test/client.py:671360 ms98.5%
Client.requestdjango/test/client.py:1091360 ms98.5%
ClientHandler.__call__django/test/client.py:186324 ms88.6%
BaseHandler.get_responsedjango/core/handlers/base.py:142324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:123324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:145324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:380324 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56324 ms88.6%
BaseHandler._get_responsedjango/core/handlers/base.py:199324 ms88.6%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)324 ms88.6%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:189322 ms88.0%
_conference_detailconfs/views.py:296 return render(316 ms86.2%
renderdjango/shortcuts.py:27316 ms86.2%
render_to_stringdjango/template/loader.py:62316 ms86.2%
Template.renderdjango/template/backends/django.py:107316 ms86.2%
Template.renderdjango/template/base.py:175313 ms85.6%
instrumented_test_renderdjango/test/utils.py:113313 ms85.6%
NodeList.renderdjango/template/base.py:1108313 ms85.6%
Node.render_annotateddjango/template/base.py:1069313 ms85.6%
ExtendsNode.renderdjango/template/loader_tags.py:160312 ms85.3%
instrumented_test_renderdjango/test/utils.py:113312 ms85.3%
NodeList.renderdjango/template/base.py:1108312 ms85.3%
Node.render_annotateddjango/template/base.py:1069312 ms85.3%
BlockNode.renderdjango/template/loader_tags.py:66307 ms83.9%
NodeList.renderdjango/template/base.py:1108307 ms83.9%
Node.render_annotateddjango/template/base.py:1069307 ms83.9%
IfNode.renderdjango/template/defaulttags.py:333298 ms81.5%
NodeList.renderdjango/template/base.py:1108298 ms81.5%
Node.render_annotateddjango/template/base.py:1069298 ms81.5%
SimpleNode.renderdjango/template/library.py:343297 ms81.2%
heroicon_outlineheroicons/templatetags/heroicons.py:23297 ms81.2%
_render_iconheroicons/templatetags/heroicons.py:41297 ms81.2%
_render_iconheroicons/__init__.py:47297 ms81.2%
_load_iconheroicons/__init__.py:18296 ms80.9%
ZipFile.__init__<stdlib>/zipfile/__init__.py:1505296 ms80.9%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:1606282 ms77.0%
Codec.decode<stdlib>/encodings/cp437.py:14277 ms75.8%
<GC>~277 ms75.8%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:15934 ms1.2%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16234 ms1.2%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16083 ms0.9%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
PartialDefNode.renderdjango/template/defaulttags.py:4208 ms2.1%
NodeList.renderdjango/template/base.py:11088 ms2.1%
Node.render_annotateddjango/template/base.py:10698 ms2.1%
ForNode.renderdjango/template/defaulttags.py:2028 ms2.1%
Page.__len__django/core/paginator.py:3128 ms2.1%
QuerySet.__len__django/db/models/query.py:4218 ms2.1%
QuerySet._fetch_alldjango/db/models/query.py:22644 ms1.2%
QuerySet._prefetch_related_objectsdjango/db/models/query.py:14904 ms1.2%
prefetch_related_objectsdjango/db/models/query.py:27244 ms1.2%
prefetch_one_leveldjango/db/models/query.py:28992 ms0.6%
QuerySet.__iter__django/db/models/query.py:4392 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms0.6%
ModelIterable.__iter__django/db/models/query.py:1032 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.6%
Cursor.executepsycopg/cursor.py:1132 ms0.6%
Connection.waitpsycopg/connection.py:4952 ms0.6%
prefetch_one_leveldjango/db/models/query.py:28802 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms0.9%
ModelIterable.__iter__django/db/models/query.py:1033 ms0.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
IfNode.renderdjango/template/defaulttags.py:3333 ms0.9%
NodeList.renderdjango/template/base.py:11083 ms0.9%
Node.render_annotateddjango/template/base.py:10693 ms0.9%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms0.9%
Template.renderdjango/template/base.py:1773 ms0.9%
instrumented_test_renderdjango/test/utils.py:1133 ms0.9%
NodeList.renderdjango/template/base.py:11083 ms0.9%
Node.render_annotateddjango/template/base.py:10693 ms0.9%
SimpleNode.renderdjango/template/library.py:3433 ms0.9%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:3 ms0.9%
QuerySet.__iter__django/db/models/query.py:4393 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms0.9%
FlatValuesListIterable.__iter__django/db/models/query.py:3023 ms0.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15743 ms0.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16232 ms0.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.6%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms0.6%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms0.6%
BaseDatabaseWrapper._prepare_cursordjango/db/backends/base/base.py:2872 ms0.6%
BaseDatabaseWrapper.validate_thread_sharingdjango/db/backends/base/base.py:6442 ms0.6%
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
Template.renderdjango/template/base.py:1732 ms0.6%
6 smaller frames hidden
2 smaller frames hidden
ClientHandler.__call__django/test/client.py:17336 ms9.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6336 ms9.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10433 ms9.0%
WhiteNoise.add_fileswhitenoise/base.py:10833 ms9.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12025 ms6.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13125 ms6.9%
WhiteNoise.get_static_filewhitenoise/base.py:21719 ms5.1%
StaticFile.__init__whitenoise/responders.py:738 ms2.1%
StaticFile.get_headerswhitenoise/responders.py:1765 ms1.5%
formatdate<stdlib>/email/utils.py:2592 ms0.6%
1 smaller frames hidden
2 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:724 ms1.2%
StaticFile.get_file_statswhitenoise/responders.py:1614 ms1.2%
__init____init__:-14 ms1.2%
FileEntry.__init__whitenoise/responders.py:2634 ms1.2%
FileEntry.stat_regular_filewhitenoise/responders.py:2764 ms1.2%
<GC>~4 ms1.2%
StaticFile.__init__whitenoise/responders.py:764 ms1.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms0.6%
StaticFile.__init__whitenoise/responders.py:772 ms0.6%
WhiteNoise.get_static_filewhitenoise/base.py:2127 ms1.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms1.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms1.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms1.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms0.9%
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1158 ms2.1%
scantreewhitenoise/base.py:2715 ms1.5%
scantreewhitenoise/base.py:2715 ms1.5%
scantreewhitenoise/base.py:2733 ms0.9%
scantreewhitenoise/base.py:2712 ms0.6%
scantreewhitenoise/base.py:2712 ms0.6%
scantreewhitenoise/base.py:2712 ms0.6%
scantreewhitenoise/base.py:2732 ms0.6%
1 smaller frames hidden
SessionMiddleware.__init__django/contrib/sessions/middleware.py:142 ms0.6%
MiddlewareMixin.__init__django/utils/deprecation.py:3562 ms0.6%
iscoroutinefunction<stdlib>/inspect.py:334 return _has_code_flag(obj, CO_COROUTINE) or _has_coroutine_mark(obj)2 ms0.6%
_has_code_flag<stdlib>/inspect.py:3012 ms0.6%
1 smaller frames hidden
3 smaller frames hidden
Estimated from 334 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/views.py:296
return render(
_conference_detail
· Templates
|
312 ms |
|
confs/tests.py:884
response = self.client.get(self.url + "?date=2021-01-01")
TestConferencePage.test_conference_with_pacific_with_date
· Libraries
|
36 ms |
|
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist
· Database
|
3 ms |
|
confs/views.py:169
return _conference_detail_cached(request, conference_slug)
conference
· Libraries
|
2 ms |
|
confs/tests.py:882
self.conference.save()
TestConferencePage.test_conference_with_pacific_with_date
· Database
|
1 ms |
|
confs/views.py:173
conference = get_object_or_404(Conference, slug=conference_slug)
_conference_detail
· Database
|
1 ms |
|
confs/views.py:203
.filter(search_query)
_conference_detail
· Database
|
1 ms |
|
confs/views.py:204
.count()
_conference_detail
· Database
|
1 ms |
|
confs/views.py:226
counts_dict = {c["created_at_date"].date(): c["count"] for c in counts}
_conference_detail
· Database
|
1 ms |
|
confs/views.py:262
.filter(count__gt=0, account__instance_model__deleted_at__isnull=True)
_conference_detail
· Database
|
1 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.05 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
16 queries · 10 msNo repeated queries.
Biggest pieces of work
|
call test body
confs/tests.py:884
|
361 ms |
|
call iscoroutinefunction
<stdlib>/inspect.py:334
|
1 ms |
| call pytest internals | 1 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 50 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 366 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 596 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 680 ms | Profile |
| 12 hours ago | CI github-actions:test | passed | 639 ms | Profile |
| 12 hours ago | CI github-actions:test | passed | 283 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 84 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 124 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 125 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 137 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 126 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 138 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 125 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 132 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 143 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 140 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 169 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 167 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 132 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 146 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 137 ms | Run |