Tests / apps/guides/tests.py
TestForAgentsAndCrawlers::test_llms_full_txt
First seen 2 weeks, 2 days ago in b3fedae
CI
github-actions:test
6 runs
Average
42 ms
median 40 ms
max 63 ms
max 63 ms
Phases
Setup 9 ms
Call 33 ms
Teardown 0.15 ms
Categories
Database 8 ms
Test code 0.12 ms
Other (Libraries, pytest, Unsampled) 34 ms
5 database queries per run
Needs 70 KB of memory (max 420 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
setup9 ms20.0%
CallInfo.from_call_pytest/runner.py:3539 ms20.0%
call_and_report.<locals>.<lambda>_pytest/runner.py:2459 ms20.0%
HookCaller.__call__pluggy/_hooks.py:5129 ms20.0%
PluginManager._hookexecpluggy/_manager.py:1209 ms20.0%
_multicallpluggy/_callers.py:1219 ms20.0%
pytest_runtest_setup_pytest/runner.py:1659 ms20.0%
SetupState.setup_pytest/runner.py:5239 ms20.0%
TestCaseFunction.setup_pytest/unittest.py:2279 ms20.0%
Function.setup_pytest/python.py:17239 ms20.0%
TopRequest._fillfixtures_pytest/fixtures.py:7079 ms20.0%
FixtureRequest.getfixturevalue_pytest/fixtures.py:5399 ms20.0%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:6279 ms20.0%
FixtureDef.execute_pytest/fixtures.py:11109 ms20.0%
HookCaller.__call__pluggy/_hooks.py:5129 ms20.0%
PluginManager._hookexecpluggy/_manager.py:1209 ms20.0%
_multicallpluggy/_callers.py:1219 ms20.0%
pytest_fixture_setup_pytest/fixtures.py:12029 ms20.0%
call_fixture_func_pytest/fixtures.py:9089 ms20.0%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:1549 ms20.0%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()9 ms20.0%
TestCase._enter_atomicsdjango/test/testcases.py:13969 ms20.0%
Atomic.__enter__django/db/transaction.py:1989 ms20.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms20.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms20.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms20.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms20.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms20.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms18.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms18.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms18.0%
Connection.connectpsycopg/connection.py:1096 ms14.0%
wait_connpsycopg/waiting.py:1455 ms10.0%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms10.0%
wait_connpsycopg/waiting.py:1412 ms4.0%
EpollSelector.select<stdlib>/selectors.py:4522 ms4.0%
Connection.connectpsycopg/connection.py:1002 ms4.0%
conninfo_attemptspsycopg/_conninfo_attempts.py:452 ms4.0%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1022 ms4.0%
getaddrinfo<stdlib>/socket.py:9982 ms4.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2580.92 ms2.0%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4020.92 ms2.0%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3740.92 ms2.0%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3570.92 ms2.0%
Cursor.executepsycopg/cursor.py:1130.92 ms2.0%
Connection.waitpsycopg/connection.py:4950.92 ms2.0%
call37 ms79.7%
CallInfo.from_call_pytest/runner.py:35337 ms79.7%
call_and_report.<locals>.<lambda>_pytest/runner.py:24537 ms79.7%
HookCaller.__call__pluggy/_hooks.py:51237 ms79.7%
PluginManager._hookexecpluggy/_manager.py:12037 ms79.7%
_multicallpluggy/_callers.py:12137 ms79.7%
pytest_runtest_call_pytest/runner.py:17937 ms79.7%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57337 ms79.7%
SimpleTestCase.__call__django/test/testcases.py:31337 ms79.7%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36834 ms73.1%
TestCase.__call__<stdlib>/unittest/case.py:74734 ms73.1%
TestCase.run<stdlib>/unittest/case.py:69134 ms73.1%
TestCase._callTestMethod<stdlib>/unittest/case.py:63734 ms73.1%
TestForAgentsAndCrawlers.test_llms_full_txtapps/guides/tests.py:162 text = self.client.get("/llms-full.txt").content.decode()28 ms59.8%
Client.getdjango/test/client.py:112428 ms59.8%
RequestFactory.getdjango/test/client.py:47528 ms59.8%
RequestFactory.genericdjango/test/client.py:67128 ms59.8%
Client.requestdjango/test/client.py:108228 ms59.8%
ClientHandler.__call__django/test/client.py:17324 ms53.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6224 ms53.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10424 ms53.1%
WhiteNoise.add_fileswhitenoise/base.py:10824 ms53.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12018 ms39.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13118 ms39.9%
WhiteNoise.get_static_filewhitenoise/base.py:20812 ms26.6%
StaticFile.__init__whitenoise/responders.py:723 ms6.6%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms6.6%
__init____init__:-13 ms6.6%
FileEntry.__init__whitenoise/responders.py:2603 ms6.6%
<GC>~3 ms6.6%
StaticFile.__init__whitenoise/responders.py:773 ms6.6%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms6.6%
__init____init__:-13 ms6.6%
Headers.__init__<stdlib>/wsgiref/headers.py:433 ms6.6%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:503 ms6.6%
StaticFile.__init__whitenoise/responders.py:743 ms6.6%
parsedate<stdlib>/email/_parseaddr.py:1853 ms6.6%
WhiteNoise.get_static_filewhitenoise/base.py:2026 ms13.3%
WhiteNoise.add_mime_headerswhitenoise/base.py:2213 ms6.6%
StaticFile.__init__whitenoise/responders.py:743 ms6.6%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms6.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms13.3%
scantreewhitenoise/base.py:2626 ms13.3%
scantreewhitenoise/base.py:2626 ms13.3%
scantreewhitenoise/base.py:2623 ms6.6%
scantreewhitenoise/base.py:2623 ms6.6%
scantreewhitenoise/base.py:2643 ms6.6%
scantreewhitenoise/base.py:2643 ms6.6%
ClientHandler.__call__django/test/client.py:1863 ms6.6%
BaseHandler.get_responsedjango/core/handlers/base.py:1413 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1303 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms6.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.6%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms6.6%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1903 ms6.6%
llms_full_txtapps/guides/views.py:96 return HttpResponse("\n\n".join(g.as_markdown() for g in all_guides().values()), content_type=TEXT)3 ms6.6%
HttpResponse.__init__django/http/response.py:3823 ms6.6%
HttpResponse.contentdjango/http/response.py:4143 ms6.6%
HttpResponseBase.make_bytesdjango/http/response.py:3223 ms6.6%
TestForAgentsAndCrawlers.test_llms_full_txtapps/guides/tests.py:164 self.assertIn(f"# {guide.title}\n", text)6 ms13.3%
TestCase.assertIn<stdlib>/unittest/case.py:12136 ms13.3%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3713 ms6.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms6.6%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms6.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4843 ms6.6%
CursorWrapper.executedjango/db/backends/utils.py:793 ms6.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms6.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms6.6%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms6.6%
Cursor.executepsycopg/cursor.py:1133 ms6.6%
Connection.waitpsycopg/connection.py:4953 ms6.6%
Estimated from 22 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/guides/tests.py:162
text = self.client.get("/llms-full.txt").content.decode()
TestForAgentsAndCrawlers.test_llms_full_txt
· Libraries
|
24 ms |
|
apps/guides/tests.py:164
self.assertIn(f"# {guide.title}\n", text)
TestForAgentsAndCrawlers.test_llms_full_txt
· pytest
|
6 ms |
|
apps/guides/views.py:96
return HttpResponse("\n\n".join(g.as_markdown() for g in all_guides().values()), content_type=TEXT)
llms_full_txt
· Libraries
|
3 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestForAgentsAndCrawlers class | 8 ms |
| _django_setup_unittest class | 0.26 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_db_marker 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
5 queries · 0.81 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/guides/tests.py:164
|
34 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
9 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
3 ms |
Reliability
6 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 6 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 46 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 | 50 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 | 63 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 29 ms | Profile |