Tests / accounts/tests.py
TestAccountIndexRobots::test_search_is_noindex_even_alone
First seen 13 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
163 ms
median 196 ms
max 205 ms
max 205 ms
Phases
Setup 1 ms
Call 161 ms
Teardown 0.28 ms
Categories
Database 10 ms
App code 2 ms
Test code 0.60 ms
Other (Libraries, Templates, Unsampled, pytest) 150 ms
8 database queries per run
Needs 2 KB of memory (max 8 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
call52 ms97.7%
TestAccountIndexRobots.test_search_is_noindex_even_aloneaccounts/tests.py:586 self.assert_noindex("/python/?q=django")52 ms97.7%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:550 response = self.client.get(url)50 ms93.3%
Client.getdjango/test/client.py:113350 ms93.3%
RequestFactory.getdjango/test/client.py:47550 ms93.3%
RequestFactory.genericdjango/test/client.py:67150 ms93.3%
Client.requestdjango/test/client.py:109150 ms93.3%
ClientHandler.__call__django/test/client.py:17333 ms62.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6333 ms62.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10431 ms57.8%
WhiteNoise.add_fileswhitenoise/base.py:10831 ms57.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12019 ms35.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13119 ms35.5%
WhiteNoise.get_static_filewhitenoise/base.py:21712 ms22.2%
StaticFile.__init__whitenoise/responders.py:739 ms17.8%
StaticFile.get_headerswhitenoise/responders.py:1707 ms13.3%
StaticFile.get_headerswhitenoise/responders.py:1782 ms4.4%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms4.4%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms4.4%
StaticFile.__init__whitenoise/responders.py:762 ms4.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms4.4%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms4.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11512 ms22.2%
scantreewhitenoise/base.py:27112 ms22.2%
scantreewhitenoise/base.py:2719 ms17.8%
scantreewhitenoise/base.py:2735 ms8.9%
scantreewhitenoise/base.py:2692 ms4.4%
scantreewhitenoise/base.py:2712 ms4.4%
scantreewhitenoise/base.py:2712 ms4.4%
scantreewhitenoise/base.py:2712 ms4.4%
scantreewhitenoise/base.py:2732 ms4.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms4.4%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms4.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms4.4%
scantreewhitenoise/base.py:2732 ms4.4%
ClientHandler.__call__django/test/client.py:18617 ms31.1%
BaseHandler.get_responsedjango/core/handlers/base.py:14217 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12317 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14517 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms31.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms31.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19917 ms31.1%
indexaccounts/views.py:425 return render(7 ms13.3%
renderdjango/shortcuts.py:277 ms13.3%
render_to_stringdjango/template/loader.py:627 ms13.3%
Template.renderdjango/template/backends/django.py:1077 ms13.3%
Template.renderdjango/template/base.py:1757 ms13.3%
instrumented_test_renderdjango/test/utils.py:1137 ms13.3%
NodeList.renderdjango/template/base.py:11087 ms13.3%
Node.render_annotateddjango/template/base.py:10697 ms13.3%
ExtendsNode.renderdjango/template/loader_tags.py:1607 ms13.3%
instrumented_test_renderdjango/test/utils.py:1137 ms13.3%
NodeList.renderdjango/template/base.py:11087 ms13.3%
Node.render_annotateddjango/template/base.py:10697 ms13.3%
SimpleNode.renderdjango/template/library.py:3432 ms4.4%
heroicon_outlineheroicons/templatetags/heroicons.py:232 ms4.4%
_render_iconheroicons/templatetags/heroicons.py:412 ms4.4%
_render_iconheroicons/__init__.py:472 ms4.4%
IfNode.renderdjango/template/defaulttags.py:3332 ms4.4%
NodeList.renderdjango/template/base.py:11082 ms4.4%
Node.render_annotateddjango/template/base.py:10692 ms4.4%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms4.4%
Template.renderdjango/template/base.py:1772 ms4.4%
instrumented_test_renderdjango/test/utils.py:1132 ms4.4%
NodeList.renderdjango/template/base.py:11082 ms4.4%
Node.render_annotateddjango/template/base.py:10692 ms4.4%
SimpleNode.renderdjango/template/library.py:3432 ms4.4%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:2 ms4.4%
QuerySet.__iter__django/db/models/query.py:4392 ms4.4%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms4.4%
FlatValuesListIterable.__iter__django/db/models/query.py:3022 ms4.4%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms4.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms4.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.4%
Cursor.executepsycopg/cursor.py:1132 ms4.4%
Connection.waitpsycopg/connection.py:4952 ms4.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.4%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()5 ms8.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.4%
BaseManager.get_querysetdjango/db/models/manager.py:1552 ms4.4%
QuerySet.lastdjango/db/models/query.py:12252 ms4.4%
QuerySet.__iter__django/db/models/query.py:4392 ms4.4%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms4.4%
ModelIterable.__iter__django/db/models/query.py:1032 ms4.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms4.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.4%
Cursor.executepsycopg/cursor.py:1132 ms4.4%
Connection.waitpsycopg/connection.py:4952 ms4.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.4%
indexaccounts/views.py:4125 ms8.9%
CountlessPaginator.get_pageaccounts/views.py:845 ms8.9%
CountlessPaginator.pageaccounts/views.py:905 ms8.9%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)5 ms8.9%
QuerySet.__iter__django/db/models/query.py:4395 ms8.9%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms8.9%
ModelIterable.__iter__django/db/models/query.py:1035 ms8.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms4.4%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms4.4%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:902 ms4.4%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4912 ms4.4%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:3642 ms4.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms4.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.4%
Cursor.executepsycopg/cursor.py:1132 ms4.4%
Connection.waitpsycopg/connection.py:4952 ms4.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.4%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:552 self.assertContains(response, self.ROBOTS_META)2 ms4.4%
Estimated from 22 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
|
33 ms |
|
accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index
· Database
|
5 ms |
|
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__
· Database
|
5 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
5 ms |
|
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist
· Database
|
2 ms |
|
accounts/tests.py:552
self.assertContains(response, self.ROBOTS_META)
TestAccountIndexRobots.assert_noindex
· Test code
|
2 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.34 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps 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 · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
accounts/tests.py:586
|
52 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 | 53 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 203 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 189 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 205 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 78 ms | Run |