Tests / accounts/tests.py
TestSelectedInstance::test_selected_instance_https_truncate
First seen 3 years ago in 1cd3a8d
CI
github-actions:test
13 runs
Average
152 ms
median 152 ms
max 251 ms
max 251 ms
Phases
Setup 2 ms
Call 150 ms
Teardown 0.30 ms
Categories
Database 26 ms
App code 0.60 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 126 ms
13 database queries per run
Needs 1 MB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.73 ms1.0%
call69 ms98.7%
TestSelectedInstance.test_selected_instance_https_truncateaccounts/tests.py:202 response = self.client.get("/?selected_instance=https://mastodon.social")63 ms89.7%
Client.getdjango/test/client.py:113363 ms89.7%
RequestFactory.getdjango/test/client.py:47563 ms89.7%
RequestFactory.genericdjango/test/client.py:67163 ms89.7%
Client.requestdjango/test/client.py:109163 ms89.7%
ClientHandler.__call__django/test/client.py:17335 ms49.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6335 ms49.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10435 ms49.4%
WhiteNoise.add_fileswhitenoise/base.py:10835 ms49.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12025 ms35.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13125 ms35.9%
WhiteNoise.get_static_filewhitenoise/base.py:21719 ms26.9%
StaticFile.__init__whitenoise/responders.py:736 ms9.0%
StaticFile.get_headerswhitenoise/responders.py:1713 ms4.5%
StaticFile.get_headerswhitenoise/responders.py:1763 ms4.5%
StaticFile.__init__whitenoise/responders.py:726 ms9.0%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms4.5%
__init____init__:-13 ms4.5%
FileEntry.__init__whitenoise/responders.py:2633 ms4.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2763 ms4.5%
<GC>~3 ms4.5%
StaticFile.__init__whitenoise/responders.py:766 ms9.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1896 ms9.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms4.5%
WhiteNoise.get_static_filewhitenoise/base.py:2126 ms9.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2336 ms9.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms9.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms9.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms4.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms13.5%
scantreewhitenoise/base.py:2719 ms13.5%
scantreewhitenoise/base.py:2716 ms9.0%
scantreewhitenoise/base.py:2713 ms4.5%
scantreewhitenoise/base.py:2713 ms4.5%
scantreewhitenoise/base.py:2713 ms4.5%
scantreewhitenoise/base.py:2733 ms4.5%
scantreewhitenoise/base.py:2733 ms4.5%
scantreewhitenoise/base.py:2733 ms4.5%
ClientHandler.__call__django/test/client.py:18628 ms40.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14228 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms40.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12328 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms40.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14528 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms35.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms35.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms35.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms35.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms35.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms35.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms35.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms35.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms35.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms35.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms35.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms35.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms35.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms35.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19925 ms35.9%
indexaccounts/views.py:425 return render(25 ms35.9%
renderdjango/shortcuts.py:2725 ms35.9%
render_to_stringdjango/template/loader.py:6225 ms35.9%
Template.renderdjango/template/backends/django.py:10725 ms35.9%
Template.renderdjango/template/base.py:17525 ms35.9%
instrumented_test_renderdjango/test/utils.py:11325 ms35.9%
NodeList.renderdjango/template/base.py:110825 ms35.9%
Node.render_annotateddjango/template/base.py:106925 ms35.9%
ExtendsNode.renderdjango/template/loader_tags.py:16025 ms35.9%
instrumented_test_renderdjango/test/utils.py:11325 ms35.9%
NodeList.renderdjango/template/base.py:110825 ms35.9%
Node.render_annotateddjango/template/base.py:106925 ms35.9%
BlockNode.renderdjango/template/loader_tags.py:6622 ms31.4%
NodeList.renderdjango/template/base.py:110822 ms31.4%
Node.render_annotateddjango/template/base.py:106922 ms31.4%
ForNode.renderdjango/template/defaulttags.py:24919 ms26.9%
Node.render_annotateddjango/template/base.py:106919 ms26.9%
StaticNode.renderdjango/templatetags/static.py:1166 ms9.0%
StaticNode.urldjango/templatetags/static.py:1136 ms9.0%
StaticNode.handle_simpledjango/templatetags/static.py:1296 ms9.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms4.5%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms4.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2083 ms4.5%
urlsplit<stdlib>/urllib/parse.py:5823 ms4.5%
IfNode.renderdjango/template/defaulttags.py:3266 ms9.0%
infix.<locals>.Operator.evaldjango/template/smartif.py:616 ms9.0%
<lambda>django/template/smartif.py:1066 ms9.0%
TemplateLiteral.evaldjango/template/defaulttags.py:9186 ms9.0%
FilterExpression.resolvedjango/template/base.py:8093 ms4.5%
Variable.resolvedjango/template/base.py:9453 ms4.5%
Variable._resolve_lookupdjango/template/base.py:9993 ms4.5%
FilterExpression.resolvedjango/template/base.py:8063 ms4.5%
Variable.resolvedjango/template/base.py:9453 ms4.5%
Variable._resolve_lookupdjango/template/base.py:9963 ms4.5%
IfNode.renderdjango/template/defaulttags.py:3333 ms4.5%
NodeList.renderdjango/template/base.py:11083 ms4.5%
Node.render_annotateddjango/template/base.py:10693 ms4.5%
URLNode.renderdjango/template/defaulttags.py:5113 ms4.5%
SimpleNode.renderdjango/template/library.py:3433 ms4.5%
querystringdjango/template/defaulttags.py:13483 ms4.5%
QueryDict.urlencodedjango/http/request.py:7443 ms4.5%
SimpleNode.renderdjango/template/library.py:3433 ms4.5%
heroicon_outlineheroicons/templatetags/heroicons.py:233 ms4.5%
_render_iconheroicons/templatetags/heroicons.py:413 ms4.5%
_render_iconheroicons/__init__.py:653 ms4.5%
tostring<stdlib>/xml/etree/ElementTree.py:11063 ms4.5%
ElementTree.write<stdlib>/xml/etree/ElementTree.py:7453 ms4.5%
_namespaces<stdlib>/xml/etree/ElementTree.py:8443 ms4.5%
VariableNode.renderdjango/template/base.py:11733 ms4.5%
render_value_in_contextdjango/template/base.py:11463 ms4.5%
template_localtimedjango/utils/timezone.py:1563 ms4.5%
LazyObject.__getattribute__django/utils/functional.py:2803 ms4.5%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2513 ms4.5%
SimpleLazyObject._setupdjango/utils/functional.py:4043 ms4.5%
CSPMiddleware._make_noncecsp/middleware.py:593 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3823 ms4.5%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:603 ms4.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms4.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms4.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1263 ms4.5%
Atomic.__enter__django/db/transaction.py:2233 ms4.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.5%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4003 ms4.5%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3673 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms4.5%
Cursor.executepsycopg/cursor.py:1133 ms4.5%
Connection.waitpsycopg/connection.py:4953 ms4.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()6 ms9.0%
TestCase._fixture_teardowndjango/test/testcases.py:14983 ms4.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4953 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.5%
TestCase._fixture_teardowndjango/test/testcases.py:15003 ms4.5%
TestCase._rollback_atomicsdjango/test/testcases.py:14083 ms4.5%
Atomic.__exit__django/db/transaction.py:2983 ms4.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4313 ms4.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3753 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms4.5%
Cursor.executepsycopg/cursor.py:1133 ms4.5%
Connection.waitpsycopg/connection.py:4953 ms4.5%
Estimated from 23 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
accounts/tests.py:202
response = self.client.get("/?selected_instance=https://mastodon.social")
TestSelectedInstance.test_selected_instance_https_truncate
· Libraries
|
38 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
25 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
13 queries · 6 msNo repeated queries.
Biggest pieces of work
|
call test body
accounts/tests.py:202
|
63 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
6 ms |
| setup pytest internals | 0.73 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 | 70 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 145 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 153 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 93 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 116 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 185 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 116 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 164 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 152 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 123 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 251 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 194 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 219 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 103 ms | Run |