Tests / accounts/tests.py
TestAccountIndexRobots::test_two_facets_are_noindex
First seen 12 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
169 ms
median 168 ms
max 276 ms
max 276 ms
Phases
Setup 2 ms
Call 167 ms
Teardown 0.38 ms
Categories
Database 21 ms
Other (Libraries, Templates, pytest, Unsampled) 148 ms
8 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, 7 hours ago ·
open run
call63 ms98.3%
TestAccountIndexRobots.test_two_facets_are_noindexaccounts/tests.py:579 self.assert_noindex("/python/?f=best&t=human")58 ms91.5%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:550 response = self.client.get(url)58 ms91.5%
Client.getdjango/test/client.py:113358 ms91.5%
RequestFactory.getdjango/test/client.py:47558 ms91.5%
RequestFactory.genericdjango/test/client.py:67158 ms91.5%
Client.requestdjango/test/client.py:109156 ms88.2%
ClientHandler.__call__django/test/client.py:17335 ms54.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6335 ms54.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10435 ms54.2%
WhiteNoise.add_fileswhitenoise/base.py:10835 ms54.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12024 ms37.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13122 ms33.9%
WhiteNoise.get_static_filewhitenoise/base.py:21715 ms23.7%
StaticFile.__init__whitenoise/responders.py:736 ms10.2%
StaticFile.get_headerswhitenoise/responders.py:1766 ms10.2%
StaticFile.__init__whitenoise/responders.py:754 ms6.8%
Headers.__getitem__<stdlib>/wsgiref/headers.py:834 ms6.8%
StaticFile.__init__whitenoise/responders.py:762 ms3.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms3.4%
StaticFile.__init__whitenoise/responders.py:772 ms3.4%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms3.4%
WhiteNoise.get_static_filewhitenoise/base.py:2126 ms10.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2336 ms10.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms10.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms6.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms6.8%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms3.4%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2142 ms3.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms13.6%
scantreewhitenoise/base.py:2716 ms10.2%
scantreewhitenoise/base.py:2716 ms10.2%
scantreewhitenoise/base.py:2712 ms3.4%
scantreewhitenoise/base.py:2712 ms3.4%
scantreewhitenoise/base.py:2732 ms3.4%
ClientHandler.__call__django/test/client.py:18622 ms33.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14222 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12322 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14522 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms33.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms33.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19922 ms33.9%
indexaccounts/views.py:425 return render(9 ms13.6%
renderdjango/shortcuts.py:279 ms13.6%
render_to_stringdjango/template/loader.py:629 ms13.6%
Template.renderdjango/template/backends/django.py:1079 ms13.6%
Template.renderdjango/template/base.py:1759 ms13.6%
instrumented_test_renderdjango/test/utils.py:1139 ms13.6%
NodeList.renderdjango/template/base.py:11089 ms13.6%
Node.render_annotateddjango/template/base.py:10699 ms13.6%
ExtendsNode.renderdjango/template/loader_tags.py:1609 ms13.6%
instrumented_test_renderdjango/test/utils.py:1139 ms13.6%
NodeList.renderdjango/template/base.py:11089 ms13.6%
Node.render_annotateddjango/template/base.py:10696 ms10.2%
BlockNode.renderdjango/template/loader_tags.py:666 ms10.2%
NodeList.renderdjango/template/base.py:11086 ms10.2%
Node.render_annotateddjango/template/base.py:10696 ms10.2%
ForNode.renderdjango/template/defaulttags.py:2494 ms6.8%
Node.render_annotateddjango/template/base.py:10692 ms3.4%
IfNode.renderdjango/template/defaulttags.py:3262 ms3.4%
infix.<locals>.Operator.evaldjango/template/smartif.py:612 ms3.4%
<lambda>django/template/smartif.py:1072 ms3.4%
TemplateLiteral.evaldjango/template/defaulttags.py:9182 ms3.4%
FilterExpression.resolvedjango/template/base.py:8062 ms3.4%
Variable.resolvedjango/template/base.py:9452 ms3.4%
Variable._resolve_lookupdjango/template/base.py:9822 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%
CottonComponentNode.renderdjango_cotton/templatetags/_component.py:2752 ms3.4%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()6 ms10.2%
QuerySet.lastdjango/db/models/query.py:12256 ms10.2%
QuerySet.__iter__django/db/models/query.py:4396 ms10.2%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms10.2%
ModelIterable.__iter__django/db/models/query.py:1036 ms10.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16124 ms6.8%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7684 ms6.8%
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:2652 ms3.4%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10102 ms3.4%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:902 ms3.4%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4912 ms3.4%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:4742 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%
indexaccounts/views.py:4126 ms10.2%
CountlessPaginator.get_pageaccounts/views.py:846 ms10.2%
CountlessPaginator.pageaccounts/views.py:906 ms10.2%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)6 ms10.2%
QuerySet.__iter__django/db/models/query.py:4396 ms10.2%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms10.2%
ModelIterable.__iter__django/db/models/query.py:1036 ms10.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16124 ms6.8%
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:2652 ms3.4%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10312 ms3.4%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9392 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%
Client.requestdjango/test/client.py:11032 ms3.4%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms3.4%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms3.4%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms3.4%
Atomic.__enter__django/db/transaction.py:2232 ms3.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.4%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.4%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 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:1032 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%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms3.4%
TestCase._fixture_teardowndjango/test/testcases.py:15002 ms3.4%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms3.4%
Atomic.__exit__django/db/transaction.py:2952 ms3.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.4%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms3.4%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 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:1032 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%
Estimated from 29 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
|
37 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
9 ms |
|
accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index
· Database
|
6 ms |
|
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__
· Database
|
6 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 |
| _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
8 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
accounts/tests.py:579
|
58 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 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 | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 64 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 193 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 144 ms | Profile |
| 12 hours ago | CI github-actions:test | passed | 276 ms | Profile |
| 12 hours ago | CI github-actions:test | passed | 105 ms | Run |