Tests / apps/guides/tests.py
TestForAgentsAndCrawlers::test_robots_txt
First seen 2 weeks, 2 days ago in b3fedae
CI
github-actions:test
1 run
Average
40 ms
median 40 ms
max 40 ms
max 40 ms
Phases
Setup 0.71 ms
Call 39 ms
Teardown 0.18 ms
Categories
Other (Libraries, Unsampled) 40 ms
5 database queries per run
Needs 288 KB of memory (max 288 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
call39 ms97.8%
TestForAgentsAndCrawlers.test_robots_txtapps/guides/tests.py:167 text = self.client.get("/robots.txt").content.decode()39 ms97.8%
Client.getdjango/test/client.py:112439 ms97.8%
RequestFactory.getdjango/test/client.py:47539 ms97.8%
RequestFactory.genericdjango/test/client.py:67139 ms97.8%
Client.requestdjango/test/client.py:108239 ms97.8%
ClientHandler.__call__django/test/client.py:17339 ms97.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6239 ms97.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10435 ms86.3%
WhiteNoise.add_fileswhitenoise/base.py:10835 ms86.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12030 ms74.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13130 ms74.8%
WhiteNoise.get_static_filewhitenoise/base.py:20830 ms74.8%
StaticFile.__init__whitenoise/responders.py:7730 ms74.8%
StaticFile.get_alternativeswhitenoise/responders.py:20030 ms74.8%
__init____init__:-130 ms74.8%
Headers.__init__<stdlib>/wsgiref/headers.py:3630 ms74.8%
<GC>~30 ms74.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms11.5%
scantreewhitenoise/base.py:2625 ms11.5%
scantreewhitenoise/base.py:2625 ms11.5%
scantreewhitenoise/base.py:2645 ms11.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1115 ms11.5%
WhiteNoise.add_fileswhitenoise/base.py:1085 ms11.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1205 ms11.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1315 ms11.5%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms5.8%
StaticFile.__init__whitenoise/responders.py:732 ms5.8%
StaticFile.get_headerswhitenoise/responders.py:1762 ms5.8%
formatdate<stdlib>/email/utils.py:2662 ms5.8%
Estimated from 17 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/guides/tests.py:167
text = self.client.get("/robots.txt").content.decode()
TestForAgentsAndCrawlers.test_robots_txt
· Libraries
|
39 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.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 0.57 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/guides/tests.py:167
|
39 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 | 40 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 19 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 39 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 30 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 49 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 24 ms | Profile |