Tests / apps/guides/tests.py
TestForAgentsAndCrawlers::test_robots_txt
First seen 3 weeks, 1 day ago in b3fedae
CI
github-actions:test
9 runs
Average
32 ms
median 30 ms
max 49 ms
max 49 ms
Phases
Setup 0.58 ms
Call 31 ms
Teardown 0.15 ms
Categories
Database 4 ms
Other (Libraries, Unsampled) 27 ms
5 database queries per run
Needs 448 KB of memory (max 772 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 10 hours ago ·
open run
call25 ms97.2%
TestForAgentsAndCrawlers.test_robots_txtapps/guides/tests.py:170 text = self.client.get("/robots.txt").content.decode()25 ms97.2%
Client.getdjango/test/client.py:112425 ms97.2%
RequestFactory.getdjango/test/client.py:47525 ms97.2%
RequestFactory.genericdjango/test/client.py:67125 ms97.2%
Client.requestdjango/test/client.py:108225 ms97.2%
ClientHandler.__call__django/test/client.py:17325 ms97.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6225 ms97.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10425 ms97.2%
WhiteNoise.add_fileswhitenoise/base.py:10825 ms97.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12018 ms69.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms55.5%
WhiteNoise.get_static_filewhitenoise/base.py:20811 ms41.6%
StaticFile.__init__whitenoise/responders.py:767 ms27.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1904 ms13.9%
Response.__init__whitenoise/responders.py:184 ms13.9%
<GC>~4 ms13.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1894 ms13.9%
Headers.__getitem__<stdlib>/wsgiref/headers.py:834 ms13.9%
Headers.get<stdlib>/wsgiref/headers.py:1044 ms13.9%
StaticFile.__init__whitenoise/responders.py:774 ms13.9%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms13.9%
__init____init__:-14 ms13.9%
Headers.__init__<stdlib>/wsgiref/headers.py:444 ms13.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:494 ms13.9%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms13.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms13.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms13.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms13.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms13.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2054 ms13.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1864 ms13.9%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2094 ms13.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms27.8%
scantreewhitenoise/base.py:2644 ms13.9%
scantreewhitenoise/base.py:2624 ms13.9%
scantreewhitenoise/base.py:2624 ms13.9%
scantreewhitenoise/base.py:2624 ms13.9%
scantreewhitenoise/base.py:2624 ms13.9%
scantreewhitenoise/base.py:2624 ms13.9%
scantreewhitenoise/base.py:2604 ms13.9%
Estimated from 7 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/guides/tests.py:170
text = self.client.get("/robots.txt").content.decode()
TestForAgentsAndCrawlers.test_robots_txt
· Libraries
|
25 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.05 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:170
|
25 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 | |
|---|---|---|---|---|
| 10 hours ago | CI github-actions:test | passed | 25 ms | Profile |
| 3 days, 20 hours ago | CI github-actions:test | passed | 37 ms | Profile |
| 5 days, 20 hours ago | CI github-actions:test | passed | 20 ms | Profile |
| 6 days, 20 hours ago | CI github-actions:test | passed | 40 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 19 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 39 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 30 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 49 ms | Profile |
| 3 weeks, 1 day ago | CI github-actions:test | passed | 24 ms | Profile |