Tests / accounts/tests.py
TestAccountIndexRobots::test_paginated_single_facet_is_noindex
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
134 ms
median 110 ms
max 262 ms
max 262 ms
Phases
Setup 1 ms
Call 133 ms
Teardown 0.29 ms
Categories
Database 24 ms
App code 0.65 ms
Other (Libraries, Templates, Unsampled, pytest) 110 ms
8 database queries per run
Needs 7 KB of memory (max 24 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call72 ms98.8%
TestAccountIndexRobots.test_paginated_single_facet_is_noindexaccounts/tests.py:599 self.assert_noindex("/python/?f=best&page=3")69 ms93.6%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:550 response = self.client.get(url)69 ms93.6%
Client.getdjango/test/client.py:113369 ms93.6%
RequestFactory.getdjango/test/client.py:47569 ms93.6%
RequestFactory.genericdjango/test/client.py:67169 ms93.6%
Client.requestdjango/test/client.py:109169 ms93.6%
ClientHandler.__call__django/test/client.py:17343 ms58.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6343 ms58.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10441 ms55.5%
WhiteNoise.add_fileswhitenoise/base.py:10841 ms55.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12034 ms46.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13134 ms46.8%
WhiteNoise.get_static_filewhitenoise/base.py:21734 ms46.8%
StaticFile.__init__whitenoise/responders.py:7630 ms41.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:18829 ms39.9%
Headers.__contains__<stdlib>/wsgiref/headers.py:8729 ms39.9%
Headers.get<stdlib>/wsgiref/headers.py:10629 ms39.9%
StaticFile.__init__whitenoise/responders.py:731 ms1.7%
StaticFile.get_headerswhitenoise/responders.py:1761 ms1.7%
StaticFile.__init__whitenoise/responders.py:741 ms1.7%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms8.7%
scantreewhitenoise/base.py:2714 ms5.2%
scantreewhitenoise/base.py:2714 ms5.2%
scantreewhitenoise/base.py:2733 ms3.5%
scantreewhitenoise/base.py:2711 ms1.7%
scantreewhitenoise/base.py:2711 ms1.7%
scantreewhitenoise/base.py:2711 ms1.7%
scantreewhitenoise/base.py:2731 ms1.7%
scantreewhitenoise/base.py:2733 ms3.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1111 ms1.7%
WhiteNoise.add_fileswhitenoise/base.py:1081 ms1.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1201 ms1.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1311 ms1.7%
WhiteNoise.get_static_filewhitenoise/base.py:2171 ms1.7%
StaticFile.__init__whitenoise/responders.py:731 ms1.7%
StaticFile.get_headerswhitenoise/responders.py:1761 ms1.7%
formatdate<stdlib>/email/utils.py:2661 ms1.7%
format_datetime<stdlib>/email/utils.py:2841 ms1.7%
ClientHandler.__call__django/test/client.py:18625 ms34.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14225 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12325 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14525 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms34.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms34.7%
BaseHandler._get_responsedjango/core/handlers/base.py:19925 ms34.7%
indexaccounts/views.py:425 return render(14 ms19.1%
renderdjango/shortcuts.py:2714 ms19.1%
render_to_stringdjango/template/loader.py:6214 ms19.1%
Template.renderdjango/template/backends/django.py:10714 ms19.1%
Template.renderdjango/template/base.py:17514 ms19.1%
instrumented_test_renderdjango/test/utils.py:11314 ms19.1%
NodeList.renderdjango/template/base.py:110814 ms19.1%
Node.render_annotateddjango/template/base.py:106914 ms19.1%
ExtendsNode.renderdjango/template/loader_tags.py:16014 ms19.1%
instrumented_test_renderdjango/test/utils.py:11314 ms19.1%
NodeList.renderdjango/template/base.py:110814 ms19.1%
Node.render_annotateddjango/template/base.py:106914 ms19.1%
BlockNode.renderdjango/template/loader_tags.py:668 ms10.4%
NodeList.renderdjango/template/base.py:11088 ms10.4%
Node.render_annotateddjango/template/base.py:10698 ms10.4%
ForNode.renderdjango/template/defaulttags.py:2496 ms8.7%
Node.render_annotateddjango/template/base.py:10695 ms6.9%
IfNode.renderdjango/template/defaulttags.py:3335 ms6.9%
NodeList.renderdjango/template/base.py:11085 ms6.9%
Node.render_annotateddjango/template/base.py:10695 ms6.9%
URLNode.renderdjango/template/defaulttags.py:4954 ms5.2%
URLNode.renderdjango/template/defaulttags.py:5111 ms1.7%
reversedjango/urls/base.py:981 ms1.7%
IfNode.renderdjango/template/defaulttags.py:3331 ms1.7%
NodeList.renderdjango/template/base.py:11081 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
SimpleNode.renderdjango/template/library.py:3421 ms1.7%
TagHelperNode.get_resolved_argumentsdjango/template/library.py:3301 ms1.7%
IfNode.renderdjango/template/defaulttags.py:3231 ms1.7%
VariableNode.renderdjango/template/base.py:11671 ms1.7%
FilterExpression.resolvedjango/template/base.py:8061 ms1.7%
Variable.resolvedjango/template/base.py:9451 ms1.7%
Variable._resolve_lookupdjango/template/base.py:9961 ms1.7%
URLNode.renderdjango/template/defaulttags.py:5111 ms1.7%
reversedjango/urls/base.py:981 ms1.7%
CsrfTokenNode.renderdjango/template/defaulttags.py:781 ms1.7%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2511 ms1.7%
SimpleLazyObject._setupdjango/utils/functional.py:4041 ms1.7%
csrf.<locals>._get_valdjango/template/context_processors.py:261 ms1.7%
get_tokendjango/middleware/csrf.py:1131 ms1.7%
_add_new_csrf_cookiedjango/middleware/csrf.py:871 ms1.7%
IfNode.renderdjango/template/defaulttags.py:3331 ms1.7%
NodeList.renderdjango/template/base.py:11081 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms1.7%
Template.renderdjango/template/base.py:1771 ms1.7%
instrumented_test_renderdjango/test/utils.py:1131 ms1.7%
NodeList.renderdjango/template/base.py:11081 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
SimpleNode.renderdjango/template/library.py:3431 ms1.7%
instances_datalistaccounts/templatetags/account_extras.py:34 instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)1 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.7%
QuerySet.filterdjango/db/models/query.py:16761 ms1.7%
indexaccounts/views.py:4126 ms8.7%
CountlessPaginator.get_pageaccounts/views.py:846 ms8.7%
CountlessPaginator.pageaccounts/views.py:906 ms8.7%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)6 ms8.7%
QuerySet.__iter__django/db/models/query.py:4396 ms8.7%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms8.7%
ModelIterable.__iter__django/db/models/query.py:1036 ms8.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16124 ms5.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7684 ms5.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:894 ms5.2%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:784 ms5.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2634 ms5.2%
Query.get_select_maskdjango/db/models/sql/query.py:8984 ms5.2%
Query._get_only_select_maskdjango/db/models/sql/query.py:8684 ms5.2%
Field.__hash__django/db/models/fields/__init__.py:7444 ms5.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.7%
Cursor.executepsycopg/cursor.py:1131 ms1.7%
Connection.waitpsycopg/connection.py:4951 ms1.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16661 ms1.7%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()5 ms6.9%
QuerySet.lastdjango/db/models/query.py:12255 ms6.9%
QuerySet.__iter__django/db/models/query.py:4395 ms6.9%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms6.9%
ModelIterable.__iter__django/db/models/query.py:1035 ms6.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms5.2%
CursorWrapper.executedjango/db/backends/utils.py:794 ms5.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms5.2%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms5.2%
Cursor.executepsycopg/cursor.py:1134 ms5.2%
Connection.waitpsycopg/connection.py:4954 ms5.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms1.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms1.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms1.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781 ms1.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2651 ms1.7%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10101 ms1.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()4 ms5.2%
TestCase._fixture_teardowndjango/test/testcases.py:14973 ms3.5%
TestCase._should_check_constraintsdjango/test/testcases.py:15063 ms3.5%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5043 ms3.5%
Cursor.executepsycopg/cursor.py:1133 ms3.5%
Connection.waitpsycopg/connection.py:4953 ms3.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms3.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms3.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms3.5%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms1.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4961 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.7%
Cursor.executepsycopg/cursor.py:1131 ms1.7%
Connection.waitpsycopg/connection.py:4951 ms1.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.7%
Estimated from 57 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
|
43 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
13 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
|
5 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 |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
8 queries · 6 msNo repeated queries.
Biggest pieces of work
|
call test body
accounts/tests.py:599
|
69 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
4 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 | 73 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 110 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 99 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 80 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 96 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 135 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 83 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 242 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 159 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 58 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 193 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 157 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 262 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 81 ms | Run |