Tests / ft/tests.py
TestGetStartedPage::test_get_started
First seen 2 years, 10 months ago in b9e98d9
CI
github-actions:test
12 runs
Average
43 ms
median 47 ms
max 56 ms
max 56 ms
Phases
Setup 9 ms
Call 33 ms
Teardown 0.85 ms
Categories
Database 11 ms
Other (Libraries, Templates, pytest, Unsampled) 33 ms
5 database queries per run
Needs 310 KB of memory (max 724 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
setup9 ms21.9%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()9 ms21.9%
TestCase._enter_atomicsdjango/test/testcases.py:13969 ms21.9%
Atomic.__enter__django/db/transaction.py:1989 ms21.9%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms21.9%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms21.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms21.9%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms21.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms21.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms19.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms19.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms19.7%
Connection.connectpsycopg/connection.py:1096 ms15.4%
wait_connpsycopg/waiting.py:1414 ms8.8%
EpollSelector.select<stdlib>/selectors.py:4524 ms8.8%
wait_connpsycopg/waiting.py:1453 ms6.6%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms6.6%
Connection.connectpsycopg/connection.py:982 ms4.4%
timeout_from_conninfopsycopg/conninfo.py:1342 ms4.4%
get_parampsycopg/_conninfo_utils.py:812 ms4.4%
Mapping.get<frozen _collections_abc>:7952 ms4.4%
_Environ.__getitem__<frozen os>:7262 ms4.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2580.91 ms2.2%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4020.91 ms2.2%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3740.91 ms2.2%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3570.91 ms2.2%
Cursor.executepsycopg/cursor.py:1130.91 ms2.2%
Connection.waitpsycopg/connection.py:4950.91 ms2.2%
call32 ms75.9%
TestGetStartedPage.test_get_startedft/tests.py:59 response = self.client.get(reverse("get_started"))29 ms70.1%
Client.getdjango/test/client.py:112429 ms70.1%
RequestFactory.getdjango/test/client.py:47529 ms70.1%
RequestFactory.genericdjango/test/client.py:67129 ms70.1%
Client.requestdjango/test/client.py:108229 ms70.1%
ClientHandler.__call__django/test/client.py:17327 ms64.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6227 ms64.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10424 ms58.4%
WhiteNoise.add_fileswhitenoise/base.py:10824 ms58.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12019 ms46.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13119 ms46.7%
WhiteNoise.get_static_filewhitenoise/base.py:20817 ms40.9%
StaticFile.__init__whitenoise/responders.py:725 ms11.7%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms11.7%
StaticFile.__init__whitenoise/responders.py:775 ms11.7%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms5.8%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms5.8%
StaticFile.__init__whitenoise/responders.py:732 ms5.8%
StaticFile.get_headerswhitenoise/responders.py:1782 ms5.8%
StaticFile.__init__whitenoise/responders.py:762 ms5.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms5.8%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms5.8%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms5.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms5.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms11.7%
scantreewhitenoise/base.py:2625 ms11.7%
scantreewhitenoise/base.py:2625 ms11.7%
scantreewhitenoise/base.py:2642 ms5.8%
scantreewhitenoise/base.py:2622 ms5.8%
scantreewhitenoise/base.py:2622 ms5.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms5.8%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms5.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms5.8%
scantreewhitenoise/base.py:2602 ms5.8%
ClientHandler.__call__django/test/client.py:1862 ms5.8%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms5.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms5.8%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1902 ms5.8%
vary_on_headers.<locals>.decorator.<locals>._view_wrapperdjango/views/decorators/vary.py:312 ms5.8%
get_startedft/urls.py:51 return render(request, "get_started.html", {"logged_in": request.user.is_authenticated})2 ms5.8%
renderdjango/shortcuts.py:252 ms5.8%
render_to_stringdjango/template/loader.py:612 ms5.8%
get_templatedjango/template/loader.py:152 ms5.8%
DjangoTemplates.get_templatedjango/template/backends/django.py:792 ms5.8%
Engine.get_templatedjango/template/engine.py:1862 ms5.8%
Engine.find_templatedjango/template/engine.py:1592 ms5.8%
Loader.get_templatedjango/template/loaders/cached.py:572 ms5.8%
Loader.get_templatedjango/template/loaders/base.py:232 ms5.8%
Loader.get_contentsdjango/template/loaders/cached.py:262 ms5.8%
Loader.get_contentsdjango/template/loaders/filesystem.py:222 ms5.8%
teardown0.90 ms2.2%
TestCase.tearDownClassdjango/test/testcases.py:1453 cls._rollback_atomics(cls.cls_atomics)0.90 ms2.2%
TestCase._rollback_atomicsdjango/test/testcases.py:14050.90 ms2.2%
Atomic.__exit__django/db/transaction.py:2950.90 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.90 ms2.2%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3370.90 ms2.2%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3080.90 ms2.2%
Connection.rollbackpsycopg/connection.py:3140.90 ms2.2%
Connection.waitpsycopg/connection.py:4950.90 ms2.2%
Estimated from 24 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
ft/tests.py:59
response = self.client.get(reverse("get_started"))
TestGetStartedPage.test_get_started
· Libraries
|
27 ms |
|
ft/urls.py:51
return render(request, "get_started.html", {"logged_in": request.user.is_authenticated})
get_started
· Templates
|
2 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestGetStartedPage class | 8 ms |
| _django_setup_unittest class | 0.25 ms |
| _dj_autoclear_mailbox function | 0.06 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker 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
5 queries · 0.83 msNo repeated queries.
Biggest pieces of work
|
call test body
ft/tests.py:59
|
29 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
9 ms |
| call pytest internals | 2 ms |
|
teardown tearDownClass
django/test/testcases.py:1453
|
0.90 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 | 42 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 25 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 49 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 39 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 53 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 29 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 53 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 52 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 50 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 56 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 27 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 46 ms | Profile |