CI
github-actions:test
15 runs
Average
44 ms
median 47 ms
max 62 ms
max 62 ms
Phases
Setup 9 ms
Call 34 ms
Teardown 0.16 ms
Categories
Database 13 ms
Test code 0.12 ms
Other (Libraries, Templates, pytest, Unsampled) 31 ms
5 database queries per run
Needs 27 KB of memory (max 120 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup7 ms20.0%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()6 ms16.7%
TestCase._enter_atomicsdjango/test/testcases.py:13966 ms16.7%
Atomic.__enter__django/db/transaction.py:1986 ms16.7%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4546 ms16.7%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3036 ms16.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms16.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2796 ms16.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms16.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2566 ms16.7%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)6 ms16.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms16.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3336 ms16.7%
Connection.connectpsycopg/connection.py:1096 ms16.7%
wait_connpsycopg/waiting.py:1455 ms13.4%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms13.4%
wait_connpsycopg/waiting.py:1411 ms3.3%
EpollSelector.select<stdlib>/selectors.py:4521 ms3.3%
call29 ms79.6%
TestDocsPage.test_docsft/tests.py:72 response = self.client.get(reverse("docs"))27 ms73.5%
Client.getdjango/test/client.py:112427 ms73.5%
RequestFactory.getdjango/test/client.py:47527 ms73.5%
RequestFactory.genericdjango/test/client.py:67127 ms73.5%
Client.requestdjango/test/client.py:108227 ms73.5%
ClientHandler.__call__django/test/client.py:17325 ms67.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6222 ms61.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10422 ms61.3%
WhiteNoise.add_fileswhitenoise/base.py:10822 ms61.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms55.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms55.1%
WhiteNoise.get_static_filewhitenoise/base.py:20820 ms55.1%
StaticFile.__init__whitenoise/responders.py:7220 ms55.1%
StaticFile.get_file_statswhitenoise/responders.py:16318 ms49.0%
<GC>~18 ms49.0%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms6.1%
__init____init__:-12 ms6.1%
FileEntry.__init__whitenoise/responders.py:2632 ms6.1%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms6.1%
<GC>~2 ms6.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms6.1%
scantreewhitenoise/base.py:2622 ms6.1%
scantreewhitenoise/base.py:2622 ms6.1%
scantreewhitenoise/base.py:2622 ms6.1%
scantreewhitenoise/base.py:2622 ms6.1%
scantreewhitenoise/base.py:2622 ms6.1%
scantreewhitenoise/base.py:2642 ms6.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:552 ms6.1%
ClientHandler.__call__django/test/client.py:1862 ms6.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms6.1%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1902 ms6.1%
vary_on_headers.<locals>.decorator.<locals>._view_wrapperdjango/views/decorators/vary.py:312 ms6.1%
docsft/urls.py:57 return render(request, "docs.html")2 ms6.1%
renderdjango/shortcuts.py:252 ms6.1%
render_to_stringdjango/template/loader.py:622 ms6.1%
Template.renderdjango/template/backends/django.py:1072 ms6.1%
Template.renderdjango/template/base.py:1742 ms6.1%
instrumented_test_renderdjango/test/utils.py:1142 ms6.1%
NodeList.renderdjango/template/base.py:10912 ms6.1%
Node.render_annotateddjango/template/base.py:10522 ms6.1%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms6.1%
instrumented_test_renderdjango/test/utils.py:1142 ms6.1%
NodeList.renderdjango/template/base.py:10912 ms6.1%
Node.render_annotateddjango/template/base.py:10522 ms6.1%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms6.1%
instrumented_test_renderdjango/test/utils.py:1142 ms6.1%
NodeList.renderdjango/template/base.py:10912 ms6.1%
Node.render_annotateddjango/template/base.py:10522 ms6.1%
BlockNode.renderdjango/template/loader_tags.py:662 ms6.1%
NodeList.renderdjango/template/base.py:10912 ms6.1%
Node.render_annotateddjango/template/base.py:10522 ms6.1%
BlockNode.renderdjango/template/loader_tags.py:662 ms6.1%
NodeList.renderdjango/template/base.py:10912 ms6.1%
Node.render_annotateddjango/template/base.py:10522 ms6.1%
BlockNode.renderdjango/template/loader_tags.py:662 ms6.1%
NodeList.renderdjango/template/base.py:10912 ms6.1%
TestDocsPage.test_docsft/tests.py:74 self.assertContains(response, "How flakytest works")2 ms6.1%
SimpleTestCase.assertContainsdjango/test/testcases.py:6032 ms6.1%
SimpleTestCase._assert_containsdjango/test/testcases.py:5822 ms6.1%
Estimated from 19 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
ft/tests.py:72
response = self.client.get(reverse("docs"))
TestDocsPage.test_docs
· Libraries
|
25 ms |
|
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
6 ms |
|
ft/urls.py:57
return render(request, "docs.html")
docs
· Templates
|
2 ms |
|
ft/tests.py:74
self.assertContains(response, "How flakytest works")
TestDocsPage.test_docs
· Libraries
|
2 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestDocsPage class | 7 ms |
| _django_setup_unittest class | 0.18 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _live_server_helper function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 0.45 msNo repeated queries.
Biggest pieces of work
|
call test body
ft/tests.py:72
|
29 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
6 ms |
| setup pytest internals | 1 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 37 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 62 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 24 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 47 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 25 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 59 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 39 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 61 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 28 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 53 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 52 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 52 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 22 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 47 ms | Profile |