Tests / apps/projects/tests.py
IndexPageTest::test_index_page
First seen 2 years, 10 months ago in 6555e46
CI
github-actions:test
5 runs
Average
151 ms
median 161 ms
max 203 ms
max 203 ms
Phases
Setup 10 ms
Call 140 ms
Teardown 1 ms
Categories
Database 14 ms
Other (Libraries, Templates, Unsampled, pytest, ...) 137 ms
6 database queries per run
Needs 377 KB of memory (max 948 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 15 minutes ago ·
open run
setup10 ms5.1%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()9 ms4.6%
TestCase._enter_atomicsdjango/test/testcases.py:13969 ms4.6%
Atomic.__enter__django/db/transaction.py:1989 ms4.6%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms4.6%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms4.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms4.6%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms4.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms4.6%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms4.1%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms4.1%
Connection.connectpsycopg/connection.py:1097 ms3.6%
wait_connpsycopg/waiting.py:1414 ms2.0%
EpollSelector.select<stdlib>/selectors.py:4524 ms2.0%
wait_connpsycopg/waiting.py:1453 ms1.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms1.5%
Connection.connectpsycopg/connection.py:1001 ms0.5%
conninfo_attemptspsycopg/_conninfo_attempts.py:451 ms0.5%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1021 ms0.5%
getaddrinfo<stdlib>/socket.py:9981 ms0.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms0.5%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms0.5%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms0.5%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms0.5%
Cursor.executepsycopg/cursor.py:1131 ms0.5%
Connection.waitpsycopg/connection.py:4951 ms0.5%
__init____init__:-11 ms0.5%
signature<stdlib>/inspect.py:33401 ms0.5%
call192 ms94.6%
IndexPageTest.test_index_pageapps/projects/tests.py:88 response = self.client.get("/")190 ms93.4%
Client.getdjango/test/client.py:1124190 ms93.4%
RequestFactory.getdjango/test/client.py:475190 ms93.4%
RequestFactory.genericdjango/test/client.py:671190 ms93.4%
Client.requestdjango/test/client.py:1082190 ms93.4%
ClientHandler.__call__django/test/client.py:173164 ms80.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:62163 ms80.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104160 ms79.0%
WhiteNoise.add_fileswhitenoise/base.py:108160 ms79.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120159 ms78.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131159 ms78.4%
WhiteNoise.get_static_filewhitenoise/base.py:203147 ms72.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:224147 ms72.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:176146 ms71.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:197146 ms71.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:21143 ms70.7%
<GC>~143 ms70.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms1.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2051 ms0.6%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1841 ms0.6%
WhiteNoise.get_static_filewhitenoise/base.py:20812 ms6.0%
StaticFile.__init__whitenoise/responders.py:726 ms3.0%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms2.4%
__init____init__:-14 ms1.8%
FileEntry.__init__whitenoise/responders.py:2634 ms1.8%
FileEntry.stat_regular_filewhitenoise/responders.py:2764 ms1.8%
<GC>~4 ms1.8%
StaticFile.__init__whitenoise/responders.py:732 ms1.2%
StaticFile.get_headerswhitenoise/responders.py:1781 ms0.6%
parsedate<stdlib>/email/_parseaddr.py:1851 ms0.6%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms0.6%
StaticFile.get_headerswhitenoise/responders.py:1761 ms0.6%
formatdate<stdlib>/email/utils.py:2661 ms0.6%
StaticFile.__init__whitenoise/responders.py:742 ms1.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms0.6%
parsedate<stdlib>/email/_parseaddr.py:1851 ms0.6%
StaticFile.__init__whitenoise/responders.py:771 ms0.6%
StaticFile.get_alternativeswhitenoise/responders.py:2011 ms0.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1151 ms0.6%
scantreewhitenoise/base.py:2621 ms0.6%
scantreewhitenoise/base.py:2641 ms0.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:752 ms1.2%
WhiteNoise.__init__whitenoise/base.py:681 ms0.6%
WhiteNoise.add_fileswhitenoise/base.py:1081 ms0.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1151 ms0.6%
scantreewhitenoise/base.py:2621 ms0.6%
scantreewhitenoise/base.py:2621 ms0.6%
scantreewhitenoise/base.py:2621 ms0.6%
scantreewhitenoise/base.py:2621 ms0.6%
scantreewhitenoise/base.py:2621 ms0.6%
scantreewhitenoise/base.py:2641 ms0.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:961 ms0.6%
ClientHandler.__call__django/test/client.py:18626 ms12.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14126 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13026 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30926 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12326 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30926 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30926 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30926 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30926 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30926 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30926 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3426 ms12.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5526 ms12.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19826 ms12.6%
indexft/urls.py:45 return render(request, "index.html", {"example_projects": example_projects})26 ms12.6%
renderdjango/shortcuts.py:2526 ms12.6%
render_to_stringdjango/template/loader.py:6226 ms12.6%
Template.renderdjango/template/backends/django.py:10726 ms12.6%
Template.renderdjango/template/base.py:17426 ms12.6%
instrumented_test_renderdjango/test/utils.py:11426 ms12.6%
NodeList.renderdjango/template/base.py:109126 ms12.6%
Node.render_annotateddjango/template/base.py:105226 ms12.6%
ExtendsNode.renderdjango/template/loader_tags.py:16024 ms12.0%
instrumented_test_renderdjango/test/utils.py:11424 ms12.0%
NodeList.renderdjango/template/base.py:109124 ms12.0%
Node.render_annotateddjango/template/base.py:105224 ms12.0%
ExtendsNode.renderdjango/template/loader_tags.py:16024 ms12.0%
instrumented_test_renderdjango/test/utils.py:11424 ms12.0%
NodeList.renderdjango/template/base.py:109124 ms12.0%
Node.render_annotateddjango/template/base.py:105224 ms12.0%
BlockNode.renderdjango/template/loader_tags.py:6624 ms12.0%
NodeList.renderdjango/template/base.py:109124 ms12.0%
Node.render_annotateddjango/template/base.py:105223 ms11.4%
BlockNode.renderdjango/template/loader_tags.py:6623 ms11.4%
NodeList.renderdjango/template/base.py:109123 ms11.4%
Node.render_annotateddjango/template/base.py:105223 ms11.4%
SimpleNode.renderdjango/template/library.py:32521 ms10.2%
heroicon_outlineheroicons/templatetags/heroicons.py:2317 ms8.4%
_render_iconheroicons/templatetags/heroicons.py:3917 ms8.4%
_render_iconheroicons/__init__.py:4517 ms8.4%
_load_iconheroicons/__init__.py:1817 ms8.4%
ZipFile.__init__<stdlib>/zipfile/__init__.py:150517 ms8.4%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16235 ms2.4%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16065 ms2.4%
ZipInfo.__init__<stdlib>/zipfile/__init__.py:4681 ms0.6%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:15992 ms1.2%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16082 ms1.2%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16101 ms0.6%
heroicon_miniheroicons/templatetags/heroicons.py:184 ms1.8%
_render_iconheroicons/templatetags/heroicons.py:394 ms1.8%
_render_iconheroicons/__init__.py:454 ms1.8%
_load_iconheroicons/__init__.py:184 ms1.8%
ZipFile.__init__<stdlib>/zipfile/__init__.py:15054 ms1.8%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16082 ms1.2%
__init____init__:-11 ms0.6%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16221 ms0.6%
IfNode.renderdjango/template/defaulttags.py:3322 ms1.2%
QuerySet.__bool__django/db/models/query.py:4042 ms1.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.2%
ModelIterable.__iter__django/db/models/query.py:952 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.2%
Cursor.executepsycopg/cursor.py:1132 ms1.2%
Connection.waitpsycopg/connection.py:4952 ms1.2%
ExtendsNode.renderdjango/template/loader_tags.py:1351 ms0.6%
ExtendsNode.get_parentdjango/template/loader_tags.py:1321 ms0.6%
ExtendsNode.find_templatedjango/template/loader_tags.py:1101 ms0.6%
Engine.find_templatedjango/template/engine.py:1591 ms0.6%
Loader.get_templatedjango/template/loaders/cached.py:571 ms0.6%
Loader.get_templatedjango/template/loaders/base.py:281 ms0.6%
__init____init__:-11 ms0.6%
Template.__init__django/template/base.py:1571 ms0.6%
Template.compile_nodelistdjango/template/base.py:1991 ms0.6%
Parser.parsedjango/template/base.py:5831 ms0.6%
do_extendsdjango/template/loader_tags.py:3071 ms0.6%
Parser.parsedjango/template/base.py:5831 ms0.6%
do_blockdjango/template/loader_tags.py:2351 ms0.6%
Parser.parsedjango/template/base.py:5831 ms0.6%
do_includedjango/template/loader_tags.py:3671 ms0.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()1 ms0.6%
TestCase._fixture_teardowndjango/test/testcases.py:14951 ms0.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4831 ms0.6%
Estimated from 168 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:88
response = self.client.get("/")
IndexPageTest.test_index_page
· Libraries
|
164 ms |
|
ft/urls.py:45
return render(request, "index.html", {"example_projects": example_projects})
index
· Templates
|
26 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_IndexPageTest class | 9 ms |
| _django_setup_unittest class | 0.29 ms |
| _django_db_marker function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 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
6 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:88
|
190 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
9 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
1 ms |
| call pytest internals | 1 ms |
|
setup __init__
__init__:-1
|
1 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 50 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 15 minutes ago | CI github-actions:test | passed | 203 ms | Profile |
| 40 minutes ago | CI github-actions:test | passed | 203 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 102 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 161 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 85 ms | Profile |
| 2 years ago | CI github-actions | passed | 261 ms | Run |
| 2 years, 2 months ago | CI github-actions | passed | 239 ms | Run |
| 2 years, 3 months ago | CI github-actions | passed | 240 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 238 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 249 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 289 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 229 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 424 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 367 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 385 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 321 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 326 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 329 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 326 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 321 ms | Run |