Tests / confs/tests.py
TestConferencePage::test_conference_with_utc_with_date_no_posts
First seen 2 years, 1 month ago in 6af392e
CI
github-actions:test
13 runs
Average
3.88 s
median 421 ms
max 10.78 s
max 10.78 s
Phases
Setup 3.53 s
Call 341 ms
Teardown 1 ms
Categories
Migrations 3.16 s
Database 43 ms
Factories 1 ms
App code 0.33 ms
Other (Libraries, Imports, DB schema, Templates, ...) 672 ms
502 database queries per run
Needs 14 MB of memory (max 33 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call420 ms99.8%
TestConferencePage.test_conference_with_utc_with_date_no_postsconfs/tests.py:875 response = self.client.get(self.url + "?date=2021-01-01")413 ms98.2%
Client.getdjango/test/client.py:1133413 ms98.2%
RequestFactory.getdjango/test/client.py:475413 ms98.2%
RequestFactory.genericdjango/test/client.py:671413 ms98.2%
Client.requestdjango/test/client.py:1091413 ms98.2%
ClientHandler.__call__django/test/client.py:173362 ms85.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63362 ms85.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104359 ms85.4%
WhiteNoise.add_fileswhitenoise/base.py:108359 ms85.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120356 ms84.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131354 ms84.1%
WhiteNoise.get_static_filewhitenoise/base.py:217347 ms82.6%
StaticFile.__init__whitenoise/responders.py:72331 ms78.7%
StaticFile.get_file_statswhitenoise/responders.py:161331 ms78.7%
__init____init__:-1331 ms78.7%
FileEntry.__init__whitenoise/responders.py:260331 ms78.7%
<GC>~331 ms78.7%
StaticFile.__init__whitenoise/responders.py:776 ms1.5%
StaticFile.get_alternativeswhitenoise/responders.py:2075 ms1.3%
Headers.items<stdlib>/wsgiref/headers.py:1395 ms1.3%
1 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:735 ms1.3%
StaticFile.get_headerswhitenoise/responders.py:1783 ms0.8%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms0.8%
Headers.get<stdlib>/wsgiref/headers.py:1053 ms0.8%
2 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:743 ms0.8%
parsedate<stdlib>/email/_parseaddr.py:1853 ms0.8%
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2126 ms1.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2336 ms1.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms1.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms1.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:206 ms1.5%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms1.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2164 ms1.0%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2044 ms1.0%
filepath_to_uridjango/utils/encoding.py:2454 ms1.0%
quote<stdlib>/urllib/parse.py:10724 ms1.0%
quote_from_bytes<stdlib>/urllib/parse.py:11124 ms1.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms0.8%
scantreewhitenoise/base.py:2712 ms0.5%
scantreewhitenoise/base.py:2712 ms0.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:752 ms0.5%
ClientHandler.__call__django/test/client.py:18652 ms12.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14252 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12352 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14552 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38052 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5652 ms12.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19952 ms12.3%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)52 ms12.3%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18952 ms12.3%
_conference_detailconfs/views.py:268 page_obj = paginator.get_page(page_number)37 ms8.7%
Paginator.get_pagedjango/core/paginator.py:16137 ms8.7%
Paginator.validate_numberdjango/core/paginator.py:15337 ms8.7%
cached_property.__get__django/utils/functional.py:4737 ms8.7%
Paginator.num_pagesdjango/core/paginator.py:18837 ms8.7%
cached_property.__get__django/utils/functional.py:4737 ms8.7%
Paginator.countdjango/core/paginator.py:18237 ms8.7%
QuerySet.countdjango/db/models/query.py:67737 ms8.7%
Query.get_countdjango/db/models/sql/query.py:65737 ms8.7%
Query.get_aggregationdjango/db/models/sql/query.py:63936 ms8.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162533 ms8.0%
CursorWrapper.executedjango/db/backends/utils.py:7933 ms8.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9233 ms8.0%
CursorWrapper._executedjango/db/backends/utils.py:10533 ms8.0%
Cursor.executepsycopg/cursor.py:11333 ms8.0%
Connection.waitpsycopg/connection.py:49533 ms8.0%
2 smaller frames hidden
1 smaller frames hidden
_conference_detailconfs/views.py:296 return render(10 ms2.3%
renderdjango/shortcuts.py:2710 ms2.3%
render_to_stringdjango/template/loader.py:6210 ms2.3%
Template.renderdjango/template/backends/django.py:10710 ms2.3%
Template.renderdjango/template/base.py:17510 ms2.3%
instrumented_test_renderdjango/test/utils.py:11310 ms2.3%
NodeList.renderdjango/template/base.py:110810 ms2.3%
Node.render_annotateddjango/template/base.py:106910 ms2.3%
ExtendsNode.renderdjango/template/loader_tags.py:16010 ms2.3%
instrumented_test_renderdjango/test/utils.py:11310 ms2.3%
NodeList.renderdjango/template/base.py:110810 ms2.3%
Node.render_annotateddjango/template/base.py:10699 ms2.1%
BlockNode.renderdjango/template/loader_tags.py:664 ms1.0%
NodeList.renderdjango/template/base.py:11084 ms1.0%
Node.render_annotateddjango/template/base.py:10694 ms1.0%
PartialDefNode.renderdjango/template/defaulttags.py:4204 ms1.0%
NodeList.renderdjango/template/base.py:11084 ms1.0%
Node.render_annotateddjango/template/base.py:10694 ms1.0%
ForNode.renderdjango/template/defaulttags.py:2024 ms1.0%
Page.__len__django/core/paginator.py:3124 ms1.0%
QuerySet.__len__django/db/models/query.py:4214 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:22624 ms1.0%
ModelIterable.__iter__django/db/models/query.py:1034 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16124 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7684 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:894 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:784 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3194 ms1.0%
IfNode.renderdjango/template/defaulttags.py:3334 ms1.0%
NodeList.renderdjango/template/base.py:11084 ms1.0%
Node.render_annotateddjango/template/base.py:10693 ms0.8%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms0.8%
Template.renderdjango/template/base.py:1773 ms0.8%
instrumented_test_renderdjango/test/utils.py:1133 ms0.8%
NodeList.renderdjango/template/base.py:11083 ms0.8%
Node.render_annotateddjango/template/base.py:10693 ms0.8%
SimpleNode.renderdjango/template/library.py:3433 ms0.8%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:3 ms0.8%
QuerySet.__iter__django/db/models/query.py:4393 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms0.8%
FlatValuesListIterable.__iter__django/db/models/query.py:3023 ms0.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15743 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
_conference_detailconfs/views.py:2763 ms0.8%
_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 ms0.8%
QuerySet.__iter__django/db/models/query.py:4393 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms0.8%
ModelIterable.__iter__django/db/models/query.py:1033 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
2 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()5 ms1.3%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms0.5%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms0.5%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms0.5%
Cursor.executepsycopg/cursor.py:1132 ms0.5%
Connection.waitpsycopg/connection.py:4952 ms0.5%
TestCase._fixture_teardowndjango/test/testcases.py:15002 ms0.5%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms0.5%
Atomic.__exit__django/db/transaction.py:2952 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.5%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms0.5%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.5%
Cursor.executepsycopg/cursor.py:1132 ms0.5%
Connection.waitpsycopg/connection.py:4952 ms0.5%
1 smaller frames hidden
Estimated from 389 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:875
response = self.client.get(self.url + "?date=2021-01-01")
TestConferencePage.test_conference_with_utc_with_date_no_posts
· Libraries
|
362 ms |
|
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail
· Database
|
37 ms |
|
confs/views.py:296
return render(
_conference_detail
· Database
|
6 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 |
|
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist
· Database
|
3 ms |
|
confs/views.py:255
.order_by(order)
_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.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
12 queries · 22 msNo repeated queries.
Biggest pieces of work
|
call test body
confs/tests.py:875
|
413 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
5 ms |
| call pytest internals | 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 | 421 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 356 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 322 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 313 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 298 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 142 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 84 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 6.23 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 6.37 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 4.86 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 10.04 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 10.17 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 10.78 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 234 ms | Run |