Tests / apps/projects/tests.py
IndexPageTest::test_index_page
First seen 2 years, 11 months ago in 6555e46
CI
github-actions:test
12 runs
Average
102 ms
median 76 ms
max 211 ms
max 211 ms
Phases
Setup 9 ms
Call 91 ms
Teardown 0.98 ms
Categories
Database 14 ms
Other (Libraries, Templates, Unsampled, pytest, ...) 87 ms
6 database queries per run
Needs 191 KB of memory (max 948 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
setup9 ms17.8%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()7 ms13.8%
TestCase._enter_atomicsdjango/test/testcases.py:13967 ms13.8%
Atomic.__enter__django/db/transaction.py:1987 ms13.8%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4547 ms13.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3037 ms13.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms13.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2797 ms13.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms13.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2567 ms13.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms13.8%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3337 ms13.8%
Connection.connectpsycopg/connection.py:1096 ms11.9%
wait_connpsycopg/waiting.py:1413 ms5.9%
EpollSelector.select<stdlib>/selectors.py:4523 ms5.9%
wait_connpsycopg/waiting.py:1453 ms5.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms5.9%
Connection.connectpsycopg/connection.py:1001 ms2.0%
conninfo_attemptspsycopg/_conninfo_attempts.py:451 ms2.0%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1021 ms2.0%
getaddrinfo<stdlib>/socket.py:9981 ms2.0%
call43 ms81.3%
IndexPageTest.test_index_pageapps/projects/tests.py:89 response = self.client.get("/")40 ms77.0%
Client.getdjango/test/client.py:112440 ms77.0%
RequestFactory.getdjango/test/client.py:47540 ms77.0%
RequestFactory.genericdjango/test/client.py:67140 ms77.0%
Client.requestdjango/test/client.py:108240 ms77.0%
ClientHandler.__call__django/test/client.py:17322 ms42.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6220 ms38.5%
__init____init__:-120 ms38.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10420 ms38.5%
WhiteNoise.add_fileswhitenoise/base.py:10820 ms38.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms29.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13113 ms25.7%
WhiteNoise.get_static_filewhitenoise/base.py:2087 ms12.8%
StaticFile.__init__whitenoise/responders.py:774 ms8.6%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms8.6%
__init____init__:-12 ms4.3%
StaticFile.__init__whitenoise/responders.py:742 ms4.3%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.3%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms8.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms8.6%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms8.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms8.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.3%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms4.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms4.3%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2092 ms4.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms8.6%
scantreewhitenoise/base.py:2602 ms4.3%
scantreewhitenoise/base.py:2622 ms4.3%
scantreewhitenoise/base.py:2622 ms4.3%
scantreewhitenoise/base.py:2622 ms4.3%
scantreewhitenoise/base.py:2622 ms4.3%
scantreewhitenoise/base.py:2622 ms4.3%
scantreewhitenoise/base.py:2602 ms4.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:962 ms4.3%
convert_exception_to_responsedjango/core/handlers/exception.py:522 ms4.3%
update_wrapper<stdlib>/functools.py:542 ms4.3%
ClientHandler.__call__django/test/client.py:18616 ms29.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14116 ms29.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms29.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13016 ms29.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms29.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30916 ms29.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms29.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12316 ms29.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms29.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30916 ms29.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms29.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30916 ms29.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms29.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30916 ms29.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms29.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3089 ms17.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms12.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms12.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms12.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms12.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms12.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms12.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms12.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1984 ms8.6%
indexft/urls.py:44 example_projects = Project.objects.filter(public=True).select_related("organization")4 ms8.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms8.6%
QuerySet.filterdjango/db/models/query.py:15424 ms8.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15604 ms8.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15704 ms8.6%
Query.add_qdjango/db/models/sql/query.py:16714 ms8.6%
Query._add_qdjango/db/models/sql/query.py:17034 ms8.6%
Query.build_filterdjango/db/models/sql/query.py:15732 ms4.3%
Query.build_filterdjango/db/models/sql/query.py:15992 ms4.3%
BaseHandler._get_responsedjango/core/handlers/base.py:1822 ms4.3%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3142 ms4.3%
URLResolver.resolvedjango/urls/resolvers.py:6732 ms4.3%
AuthenticationMiddleware.process_requestdjango/contrib/auth/middleware.py:402 ms4.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms12.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms12.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms12.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms12.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms12.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms12.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms12.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms12.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms12.8%
indexft/urls.py:45 return render(request, "index.html", {"example_projects": example_projects})7 ms12.8%
renderdjango/shortcuts.py:257 ms12.8%
render_to_stringdjango/template/loader.py:627 ms12.8%
Template.renderdjango/template/backends/django.py:1077 ms12.8%
Template.renderdjango/template/base.py:1747 ms12.8%
instrumented_test_renderdjango/test/utils.py:1134 ms8.6%
Signal.senddjango/dispatch/dispatcher.py:2092 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms4.3%
instrumented_test_renderdjango/test/utils.py:1142 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms4.3%
instrumented_test_renderdjango/test/utils.py:1142 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
BlockNode.renderdjango/template/loader_tags.py:662 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
BlockNode.renderdjango/template/loader_tags.py:662 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
IfNode.renderdjango/template/defaulttags.py:3322 ms4.3%
QuerySet.__bool__django/db/models/query.py:4042 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
instrumented_test_renderdjango/test/utils.py:1142 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms4.3%
instrumented_test_renderdjango/test/utils.py:1142 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms4.3%
instrumented_test_renderdjango/test/utils.py:1142 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
BlockNode.renderdjango/template/loader_tags.py:662 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
BlockNode.renderdjango/template/loader_tags.py:662 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
IfNode.renderdjango/template/defaulttags.py:3332 ms4.3%
NodeList.renderdjango/template/base.py:10912 ms4.3%
Node.render_annotateddjango/template/base.py:10522 ms4.3%
URLNode.renderdjango/template/defaulttags.py:5112 ms4.3%
reversedjango/urls/base.py:982 ms4.3%
䡽綋䣐疍M蕈瓀䡷쎉譈�赈嗨䷫䠀삅杴譈⭈赈謼襈䧆욉ퟨ§褀䳁즅䩴උঐ빁ꗨő女뿿䑶譈ꬽဎ䠀욉ᗿໂ譈鬽ဎ䠀�ᗿາ襌䣰쒃嬠幁썝ㅅ䗯�උ०빁ꘈő듫쇿襁첵쳌쳌쳌쳌쳌쳌쳌䡕偓襈ㇷ䣛喍뻰)쀱㯨䗰蔀瓀䠼綋ㇰ㇛M蕈瓀茪⼸ࢹ冦묁ꗨő�譈༽ဎ䠀욉ᗿฦ]皿䠊�荈ࣄ嵛ᅢ觀쳰쳌쳌䡕噁䡓 �襈ㇷ䣛喍뻨)쀱쏨䗯蔀瓀䡎綋䣨疍M蕈瓀䤺욉赈債䣿잉�䷵묀ꗨő삅ぴ譈贽ဍ䰀ᗿඤ]瞿(觀䣛�腈ꃄ�嬀幁썝薋ィ솉�女耀�멵䦨冥묁ꘈő�꣫쳌쳌䡕坁噁啁呁䡓�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h襈觖薖hʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇�襌䳮憎맨§䴀ⲍ䤯얁q왁e薀瓛䔔荁㿤襌䳶燨µ䄀ᒍ茟ূ셉Ϧ襍ᵴ섀۪赈債䣿붋hﯨ梄搀譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝ᗨÂ찀쳌쳌䡕坁噁啁呁䡓䄘횉襈Ԩ庒ﻬ赌쁽ཁܩ䐆茿Ǹ�䄀풉셁ۤ⥅仦ⲍ䰦ノ藨梄䰀ノ襌䳦襄ﺔཁܨᄏ䠃쒃嬘屁嵁幁彁썝쳌쳌쳌쳌쳌쳌쳌䡕ދ젏ډ䞋༄览ц䞋༈览ࡆ䞋༌览ె䞋༐览၆썝쳌쳌䡕坁噁啁呁䡓�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h襈觖㶖gʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇�襌䳮憎裡¥䴀ⲍ䤯얁q왁e薀瓛䔔荁㿤襌䳶뇨³䤀䤃츏赁ἔ슃䴉璉䠆떍p譈䢽㳸g䡤ҋ⠥�䠀䔻痐䠒쒁�䅛䅜䅝䅞嵟쁒�쳌䡕坁噁啁呁䡓䄘힉襈ԨᙒH赌쁵ཁة읁၆쏒䐆茿Ǹ�䄀풉셁ۤ⥅仧ⲍ䰦編朼䰀襌䳦襄ﺌ譁༆览䄃䚋༄览у譁ࡆ젏䎉䄈䚋༌览ృ譁၆젏䎉䠐쒃嬘屁嵁幁彁썝쳌䡕坁噁啁呁䡓�襈䢍䧿ﺉ䡤ҋ⠥�䠀䖉䓐溍㇈䇛ﶃ྿쎒圏䳀붍pཁ䜩䅰⤏恇ཁ䜩䅐⤏䁇ཁ䜩䄰⤏⁇ཁ䜩䄐⤏䤇䤃츏襁맴�襌䣿횉襌ꑚ�왂▄p솀ۣ襌ᵴ䢈鶋h襌䣿�矨栏䇿ﶃ瞾䠌綍䢐�旨栏擿譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝쿨¾찀쳌쳌쳌쳌쳌쳌쳌䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ䓊律䄘쬏羋༜觏褆ю嚉䐈䚉䐌争䐐嚉䐔庉褘᱾썝䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ诊켏ډ争褄ࡖ襄ె襄၎襄ᑖ纉崘쳃쳌쳌쳌쳌쳌䡕坁噁啁呁䡓Ę�襌삅䣿趉ﻈ펉襉䧶ノ䡤ҋ⠥�䠀䖉䓐掍䖐腁翼䇿鈏䣅붍ﻐº냔�ཌྷﺤ䤃䤃츏ཉ觏맛Ā�赈킽䣿떋ﻈ襈ꋈ�蓆퀝胿譈삝䇿万뒉䀭仿벉䠭䣿붍ﻐ襈븦ト腁综矿䠏붍p襈븎ト䡤ҋ⠥�䠀䔻痐䠒쒁Ę�䅛䅜䅝䅞嵟봨�쳌쳌쳌쳌䡕譈䠇例䠈젏䣉型䠐쨏譌ᡇཉ䳈例䤠줏譌<unknown file>2 ms4.3%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:8032 ms4.3%
ClientHandler.__call__django/test/client.py:1762 ms4.3%
Signal.senddjango/dispatch/dispatcher.py:2092 ms4.3%
reset_queriesdjango/db/__init__.py:482 ms4.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms4.3%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms4.3%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms4.3%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
Estimated from 28 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:89
response = self.client.get("/")
IndexPageTest.test_index_page
· Libraries
|
29 ms |
|
ft/urls.py:45
return render(request, "index.html", {"example_projects": example_projects})
index
· Templates
|
7 ms |
|
ft/urls.py:44
example_projects = Project.objects.filter(public=True).select_related("organization")
index
· Database
|
4 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_IndexPageTest class | 8 ms |
| _django_setup_unittest class | 0.24 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
Database
6 queries · 2 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:89
|
40 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
7 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
| setup pytest internals | 2 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 53 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 27 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 48 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 35 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 67 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 28 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 211 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 203 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 203 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 102 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 161 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 85 ms | Profile |