Tests / accounts/tests.py
TestAccountIndexRobots::test_full_facet_product_is_noindex
First seen 14 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
194 ms
median 214 ms
max 287 ms
max 287 ms
Phases
Setup 3 ms
Call 191 ms
Teardown 0.31 ms
Categories
Database 16 ms
Other (Libraries, Templates, pytest, Unsampled) 178 ms
8 database queries per run
Needs 4 KB of memory (max 12 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
setup1 ms1.8%
__init____init__:-11 ms1.8%
call58 ms97.8%
TestAccountIndexRobots.test_full_facet_product_is_noindexaccounts/tests.py:582 self.assert_noindex("/python/?f=best&t=human&o=followers&p=all&post=recently")58 ms97.8%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:550 response = self.client.get(url)58 ms97.8%
Client.getdjango/test/client.py:113358 ms97.8%
RequestFactory.getdjango/test/client.py:47558 ms97.8%
RequestFactory.genericdjango/test/client.py:67158 ms97.8%
Client.requestdjango/test/client.py:109158 ms97.8%
ClientHandler.__call__django/test/client.py:17330 ms50.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6330 ms50.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10430 ms50.6%
WhiteNoise.add_fileswhitenoise/base.py:10830 ms50.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms33.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms33.7%
WhiteNoise.get_static_filewhitenoise/base.py:21716 ms27.0%
StaticFile.__init__whitenoise/responders.py:768 ms13.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1894 ms6.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1884 ms6.7%
StaticFile.__init__whitenoise/responders.py:774 ms6.7%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms3.4%
StaticFile.__init__whitenoise/responders.py:732 ms3.4%
StaticFile.__init__whitenoise/responders.py:722 ms3.4%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms3.4%
__init____init__:-12 ms3.4%
FileEntry.__init__whitenoise/responders.py:2632 ms3.4%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms3.4%
<GC>~2 ms3.4%
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms6.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2334 ms6.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms6.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms3.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms16.9%
scantreewhitenoise/base.py:2718 ms13.5%
scantreewhitenoise/base.py:2716 ms10.1%
scantreewhitenoise/base.py:2734 ms6.7%
scantreewhitenoise/base.py:2692 ms3.4%
scantreewhitenoise/base.py:2692 ms3.4%
scantreewhitenoise/base.py:2732 ms3.4%
ClientHandler.__call__django/test/client.py:18628 ms47.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14228 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12328 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14528 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms47.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms47.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19928 ms47.2%
indexaccounts/views.py:425 return render(14 ms23.6%
renderdjango/shortcuts.py:2714 ms23.6%
render_to_stringdjango/template/loader.py:6214 ms23.6%
Template.renderdjango/template/backends/django.py:10714 ms23.6%
Template.renderdjango/template/base.py:17514 ms23.6%
instrumented_test_renderdjango/test/utils.py:11314 ms23.6%
NodeList.renderdjango/template/base.py:110814 ms23.6%
Node.render_annotateddjango/template/base.py:106914 ms23.6%
ExtendsNode.renderdjango/template/loader_tags.py:16014 ms23.6%
instrumented_test_renderdjango/test/utils.py:11314 ms23.6%
NodeList.renderdjango/template/base.py:110814 ms23.6%
Node.render_annotateddjango/template/base.py:106914 ms23.6%
BlockNode.renderdjango/template/loader_tags.py:668 ms13.5%
NodeList.renderdjango/template/base.py:11088 ms13.5%
Node.render_annotateddjango/template/base.py:10698 ms13.5%
ForNode.renderdjango/template/defaulttags.py:2494 ms6.7%
Node.render_annotateddjango/template/base.py:10694 ms6.7%
StaticNode.renderdjango/templatetags/static.py:1164 ms6.7%
StaticNode.urldjango/templatetags/static.py:1134 ms6.7%
StaticNode.handle_simpledjango/templatetags/static.py:1294 ms6.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms6.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms6.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2164 ms6.7%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2074 ms6.7%
urljoin<stdlib>/urllib/parse.py:7054 ms6.7%
_coerce_args<stdlib>/urllib/parse.py:1304 ms6.7%
IfNode.renderdjango/template/defaulttags.py:3334 ms6.7%
NodeList.renderdjango/template/base.py:11084 ms6.7%
Node.render_annotateddjango/template/base.py:10694 ms6.7%
CottonComponentNode.renderdjango_cotton/templatetags/_component.py:2432 ms3.4%
CottonComponentNode._get_cached_templatedjango_cotton/templatetags/_component.py:2932 ms3.4%
get_templatedjango/template/loader.py:152 ms3.4%
DjangoTemplates.get_templatedjango/template/backends/django.py:792 ms3.4%
Engine.get_templatedjango/template/engine.py:1862 ms3.4%
Engine.find_templatedjango/template/engine.py:1592 ms3.4%
Loader.get_templatedjango/template/loaders/cached.py:572 ms3.4%
Loader.get_templatedjango/template/loaders/base.py:282 ms3.4%
__init____init__:-12 ms3.4%
Template.__init__django/template/base.py:1582 ms3.4%
Template.compile_nodelistdjango/template/base.py:1912 ms3.4%
_create_smart_tokenize.<locals>.smart_tokenizedjango_cotton/nested_tag_support.py:402 ms3.4%
StaticNode.renderdjango/templatetags/static.py:1162 ms3.4%
StaticNode.renderdjango/templatetags/static.py:1162 ms3.4%
StaticNode.urldjango/templatetags/static.py:1132 ms3.4%
StaticNode.handle_simpledjango/templatetags/static.py:1292 ms3.4%
TranslateNode.renderdjango/templatetags/i18n.py:912 ms3.4%
render_value_in_contextdjango/template/base.py:11502 ms3.4%
IfNode.renderdjango/template/defaulttags.py:3332 ms3.4%
NodeList.renderdjango/template/base.py:11082 ms3.4%
Node.render_annotateddjango/template/base.py:10692 ms3.4%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms3.4%
Template.renderdjango/template/base.py:1772 ms3.4%
instrumented_test_renderdjango/test/utils.py:1132 ms3.4%
NodeList.renderdjango/template/base.py:11082 ms3.4%
Node.render_annotateddjango/template/base.py:10692 ms3.4%
SimpleNode.renderdjango/template/library.py:3432 ms3.4%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:2 ms3.4%
QuerySet.__iter__django/db/models/query.py:4392 ms3.4%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms3.4%
FlatValuesListIterable.__iter__django/db/models/query.py:3022 ms3.4%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
indexaccounts/views.py:4126 ms10.1%
CountlessPaginator.get_pageaccounts/views.py:846 ms10.1%
CountlessPaginator.pageaccounts/views.py:906 ms10.1%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)6 ms10.1%
QuerySet.__iter__django/db/models/query.py:4396 ms10.1%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms10.1%
ModelIterable.__iter__django/db/models/query.py:1036 ms10.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms10.1%
CursorWrapper.executedjango/db/backends/utils.py:796 ms10.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms10.1%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms10.1%
Cursor.executepsycopg/cursor.py:1136 ms10.1%
Connection.waitpsycopg/connection.py:4956 ms10.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms6.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms6.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms6.7%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()4 ms6.7%
QuerySet.lastdjango/db/models/query.py:12254 ms6.7%
QuerySet.__iter__django/db/models/query.py:4394 ms6.7%
QuerySet._fetch_alldjango/db/models/query.py:22624 ms6.7%
ModelIterable.__iter__django/db/models/query.py:1034 ms6.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms3.4%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms3.4%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms3.4%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms3.4%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
indexaccounts/views.py:375 .filter(search_query)2 ms3.4%
QuerySet.filterdjango/db/models/query.py:16762 ms3.4%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms3.4%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms3.4%
Query.add_qdjango/db/models/sql/query.py:16812 ms3.4%
indexaccounts/views.py:421 instances = Instance.objects.filter(deleted_at__isnull=True).values_list("instance", flat=True)2 ms3.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.4%
QuerySet.filterdjango/db/models/query.py:16762 ms3.4%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms3.4%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms3.4%
Query.add_qdjango/db/models/sql/query.py:16812 ms3.4%
Query._add_qdjango/db/models/sql/query.py:17132 ms3.4%
Query.build_filterdjango/db/models/sql/query.py:16132 ms3.4%
Query.build_lookupdjango/db/models/sql/query.py:14302 ms3.4%
Estimated from 30 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
accounts/tests.py:550
response = self.client.get(url)
TestAccountIndexRobots.assert_noindex
· Libraries
|
30 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
12 ms |
|
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__
· Database
|
6 ms |
|
accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index
· Database
|
4 ms |
|
accounts/views.py:375
.filter(search_query)
index
· Database
|
2 ms |
|
accounts/views.py:421
instances = Instance.objects.filter(deleted_at__isnull=True).values_list("instance", flat=True)
index
· Database
|
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.05 ms |
| _template_string_if_invalid_marker function | 0.03 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.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
8 queries · 5 msNo repeated queries.
Biggest pieces of work
|
call test body
accounts/tests.py:582
|
58 ms |
|
setup __init__
__init__:-1
|
1 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 59 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 229 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 200 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 287 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 116 ms | Run |