Tests / apps/guides/tests.py
TestForAgentsAndCrawlers::test_llms_full_txt
First seen 1 month ago in b3fedae
CI
github-actions:test
9 runs
Average
40 ms
median 35 ms
max 63 ms
max 63 ms
Phases
Setup 9 ms
Call 31 ms
Teardown 0.15 ms
Categories
Database 12 ms
Test code 0.08 ms
Other (Libraries, pytest, Unsampled) 28 ms
5 database queries per run
Needs 194 KB of memory (max 828 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup8 ms25.1%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()8 ms25.1%
TestCase._enter_atomicsdjango/test/testcases.py:13968 ms25.1%
Atomic.__enter__django/db/transaction.py:1988 ms25.1%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4548 ms25.1%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3038 ms25.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms25.1%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2798 ms25.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms25.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms25.1%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)8 ms25.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms25.1%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms25.1%
Connection.connectpsycopg/connection.py:1097 ms21.6%
wait_connpsycopg/waiting.py:1413 ms10.8%
EpollSelector.select<stdlib>/selectors.py:4523 ms10.8%
wait_connpsycopg/waiting.py:1452 ms7.2%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms7.2%
wait_connpsycopg/waiting.py:1361 ms3.6%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms3.6%
Connection.connectpsycopg/connection.py:1001 ms3.6%
conninfo_attemptspsycopg/_conninfo_attempts.py:451 ms3.6%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1021 ms3.6%
getaddrinfo<stdlib>/socket.py:9981 ms3.6%
call24 ms74.5%
TestForAgentsAndCrawlers.test_llms_full_txtapps/guides/tests.py:165 text = self.client.get("/llms-full.txt").content.decode()15 ms46.5%
Client.getdjango/test/client.py:112415 ms46.5%
RequestFactory.getdjango/test/client.py:47515 ms46.5%
RequestFactory.genericdjango/test/client.py:67115 ms46.5%
Client.requestdjango/test/client.py:108215 ms46.5%
ClientHandler.__call__django/test/client.py:17315 ms46.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6215 ms46.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10415 ms46.5%
WhiteNoise.add_fileswhitenoise/base.py:10815 ms46.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms46.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms46.5%
WhiteNoise.get_static_filewhitenoise/base.py:20812 ms37.2%
StaticFile.__init__whitenoise/responders.py:746 ms18.6%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms9.3%
StaticFile.__init__whitenoise/responders.py:763 ms9.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms9.3%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms9.3%
Headers.get<stdlib>/wsgiref/headers.py:1063 ms9.3%
StaticFile.__init__whitenoise/responders.py:733 ms9.3%
StaticFile.get_headerswhitenoise/responders.py:1763 ms9.3%
formatdate<stdlib>/email/utils.py:2663 ms9.3%
WhiteNoise.get_static_filewhitenoise/base.py:2033 ms9.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2243 ms9.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms9.3%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms9.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms9.3%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2053 ms9.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1843 ms9.3%
TestForAgentsAndCrawlers.test_llms_full_txtapps/guides/tests.py:167 self.assertIn(f"# {guide.title}\n", text)6 ms18.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms9.3%
TestCase._fixture_teardowndjango/test/testcases.py:14973 ms9.3%
TestCase._rollback_atomicsdjango/test/testcases.py:14053 ms9.3%
Atomic.__exit__django/db/transaction.py:2863 ms9.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms9.3%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4313 ms9.3%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3753 ms9.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms9.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms9.3%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms9.3%
Cursor.executepsycopg/cursor.py:1133 ms9.3%
Connection.waitpsycopg/connection.py:4953 ms9.3%
Estimated from 15 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/guides/tests.py:165
text = self.client.get("/llms-full.txt").content.decode()
TestForAgentsAndCrawlers.test_llms_full_txt
· Libraries
|
15 ms |
|
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
8 ms |
|
apps/guides/tests.py:167
self.assertIn(f"# {guide.title}\n", text)
TestForAgentsAndCrawlers.test_llms_full_txt
· pytest
|
6 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestForAgentsAndCrawlers class | 7 ms |
| _django_setup_unittest class | 0.19 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
5 queries · 0.50 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/guides/tests.py:167
|
21 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
8 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
3 ms |
Reliability
9 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 9 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 32 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 51 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 24 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 46 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 27 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 50 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 35 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 63 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 29 ms | Profile |