Tests / starter_packs/tests.py
TestParseHandle::test_valid_handles
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
19 ms
median 13 ms
max 52 ms
max 52 ms
Phases
Setup 8 ms
Call 8 ms
Teardown 2 ms
Categories
Database 10 ms
Other (pytest, Imports, Unsampled, Libraries, ...) 8 ms
5 database queries per run
Needs 23 KB of memory (max 248 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call7 ms58.9%
TestParseHandle.test_valid_handlesstarter_packs/tests.py:1158 self.assertEqual(parse_handle(raw), expected)6 ms49.1%
parse_handlestarter_packs/remote_follow.py:44 ascii_domain = idna.encode(domain.rstrip("."), uts46=True).decode("ascii")6 ms49.1%
encodeidna/core.py:7723 ms29.4%
uts46_remapidna/core.py:6743 ms29.4%
_find_and_load<frozen importlib._bootstrap>:13533 ms29.4%
_find_and_load_unlocked<frozen importlib._bootstrap>:12493 ms29.4%
_load_unlocked<frozen importlib._bootstrap>:8573 ms29.4%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7472 ms19.6%
SourceLoader.get_code<frozen importlib._bootstrap_external>:8762 ms19.6%
_compile_bytecode<frozen importlib._bootstrap_external>:5002 ms19.6%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7511 ms9.8%
_call_with_frames_removed<frozen importlib._bootstrap>:4911 ms9.8%
<module>idna/uts46data.py:121 ms9.8%
encodeidna/core.py:7862 ms19.6%
alabelidna/core.py:5441 ms9.8%
ulabelidna/core.py:5931 ms9.8%
check_labelidna/core.py:4821 ms9.8%
intranges_containidna/intranges.py:401 ms9.8%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms9.8%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms9.8%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms9.8%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms9.8%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms9.8%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms9.8%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms9.8%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms9.8%
Coverage._should_tracecoverage/control.py:4521 ms9.8%
InOrOut.should_tracecoverage/inorout.py:4391 ms9.8%
InOrOut.check_include_omit_etccoverage/inorout.py:4691 ms9.8%
TreeMatcher.matchcoverage/files.py:2751 ms9.8%
abs_filecoverage/files.py:1581 ms9.8%
realpath<frozen posixpath>:4601 ms9.8%
alabelidna/core.py:5501 ms9.8%
_punycodeidna/core.py:1341 ms9.8%
search_function<stdlib>/encodings/__init__.py:961 ms9.8%
_find_and_load<frozen importlib._bootstrap>:13531 ms9.8%
_find_and_load_unlocked<frozen importlib._bootstrap>:12491 ms9.8%
_load_unlocked<frozen importlib._bootstrap>:8571 ms9.8%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7511 ms9.8%
_call_with_frames_removed<frozen importlib._bootstrap>:4911 ms9.8%
<module><stdlib>/encodings/punycode.py1 ms9.8%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms9.8%
Coverage._should_tracecoverage/control.py:4521 ms9.8%
InOrOut.should_tracecoverage/inorout.py:4011 ms9.8%
canonical_filenamecoverage/files.py:851 ms9.8%
abs_filecoverage/files.py:1581 ms9.8%
realpath<frozen posixpath>:4611 ms9.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms9.8%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms9.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms9.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms9.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms9.8%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms9.8%
Cursor.executepsycopg/cursor.py:1131 ms9.8%
Connection.waitpsycopg/connection.py:4951 ms9.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms9.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms9.8%
teardown4 ms33.5%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()4 ms33.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms33.5%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3554 ms33.5%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4084 ms33.5%
Connection.closepsycopg/connection.py:2014 ms33.5%
Estimated from 9 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/remote_follow.py:44
ascii_domain = idna.encode(domain.rstrip("."), uts46=True).decode("ascii")
parse_handle
· Imports
|
6 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_isolate_apps function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 0.87 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:1158
|
6 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
4 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 12 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 7 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 13 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 23 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 12 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 17 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 11 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 5 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 52 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 18 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 34 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 4 ms | Run |