Tests / apps/guides/tests.py
TestForAgentsAndCrawlers::test_llms_txt
First seen 1 month ago in b3fedae
CI
github-actions:test
9 runs
Average
32 ms
median 31 ms
max 56 ms
max 56 ms
Phases
Setup 0.60 ms
Call 32 ms
Teardown 0.14 ms
Categories
Database 5 ms
App code 2 ms
Test code 0.13 ms
Other (Libraries, Unsampled, pytest) 25 ms
5 database queries per run
Needs 314 KB of memory (max 780 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.60 ms1.9%
call30 ms97.6%
TestForAgentsAndCrawlers.test_llms_txtapps/guides/tests.py:156 response = self.client.get("/llms.txt")30 ms97.6%
Client.getdjango/test/client.py:112430 ms97.6%
RequestFactory.getdjango/test/client.py:47530 ms97.6%
RequestFactory.genericdjango/test/client.py:67130 ms97.6%
Client.requestdjango/test/client.py:108230 ms97.6%
ClientHandler.__call__django/test/client.py:18615 ms48.8%
BaseHandler.get_responsedjango/core/handlers/base.py:14115 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13015 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12315 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3415 ms48.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.8%
BaseHandler._get_responsedjango/core/handlers/base.py:19815 ms48.8%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:19015 ms48.8%
llms_txtapps/guides/views.py:83 lines += [f"- [{g.title}]({SITE_URL}{g.markdown_url}): {g.description}" for g in guides]15 ms48.8%
Guide.markdown_urlapps/guides/content.py:74 return reverse("guide_markdown", args=[self.slug])4 ms12.2%
reversedjango/urls/base.py:394 ms12.2%
get_urlconfdjango/urls/base.py:1664 ms12.2%
ClientHandler.__call__django/test/client.py:17315 ms48.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6215 ms48.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10415 ms48.8%
WhiteNoise.add_fileswhitenoise/base.py:10815 ms48.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms48.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms48.8%
WhiteNoise.get_static_filewhitenoise/base.py:2088 ms24.4%
StaticFile.__init__whitenoise/responders.py:734 ms12.2%
StaticFile.get_headerswhitenoise/responders.py:1784 ms12.2%
parsedate<stdlib>/email/_parseaddr.py:1854 ms12.2%
StaticFile.__init__whitenoise/responders.py:774 ms12.2%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms12.2%
__init____init__:-14 ms12.2%
Headers.__init__<stdlib>/wsgiref/headers.py:444 ms12.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:524 ms12.2%
WhiteNoise.get_static_filewhitenoise/base.py:2038 ms24.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2248 ms24.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1768 ms24.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1978 ms24.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms12.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2054 ms12.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1864 ms12.2%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2124 ms12.2%
Estimated from 9 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/guides/tests.py:156
response = self.client.get("/llms.txt")
TestForAgentsAndCrawlers.test_llms_txt
· Libraries
|
15 ms |
|
apps/guides/views.py:83
lines += [f"- [{g.title}]({SITE_URL}{g.markdown_url}): {g.description}" for g in guides]
llms_txt
· App code
|
11 ms |
|
apps/guides/content.py:74
return reverse("guide_markdown", args=[self.slug])
Guide.markdown_url
· Libraries
|
4 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 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.40 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/guides/tests.py:156
|
30 ms |
| setup pytest internals | 0.60 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 | 31 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 42 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 23 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 35 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 17 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 35 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 31 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 56 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 20 ms | Profile |