CI
github-actions:test
5 runs
Average
35 ms
median 38 ms
max 42 ms
max 42 ms
Phases
Setup 0.75 ms
Call 34 ms
Teardown 0.17 ms
Categories
Database 7 ms
Other (Libraries, Unsampled, pytest) 28 ms
7 database queries per run
Needs 0 KB of memory (max 0 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, an hour ago ·
open run
call39 ms97.8%
McpTest.test_batchapps/mcp/tests.py:151 response = self.post(34 ms85.6%
McpTest.postapps/mcp/tests.py:66 return self.client.post(34 ms85.6%
Client.postdjango/test/client.py:115334 ms85.6%
RequestFactory.postdjango/test/client.py:49934 ms85.6%
RequestFactory.genericdjango/test/client.py:67134 ms85.6%
Client.requestdjango/test/client.py:108234 ms85.6%
ClientHandler.__call__django/test/client.py:17332 ms79.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6232 ms79.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10429 ms73.3%
WhiteNoise.add_fileswhitenoise/base.py:10829 ms73.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12024 ms61.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms61.1%
WhiteNoise.get_static_filewhitenoise/base.py:20819 ms48.9%
StaticFile.__init__whitenoise/responders.py:777 ms18.3%
StaticFile.get_alternativeswhitenoise/responders.py:2007 ms18.3%
__init____init__:-12 ms6.1%
StaticFile.__init__whitenoise/responders.py:765 ms12.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1895 ms12.2%
StaticFile.__init__whitenoise/responders.py:725 ms12.2%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms12.2%
__init____init__:-12 ms6.1%
FileEntry.__init__whitenoise/responders.py:2632 ms6.1%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms6.1%
<GC>~2 ms6.1%
StaticFile.__init__whitenoise/responders.py:742 ms6.1%
parsedate<stdlib>/email/_parseaddr.py:1852 ms6.1%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms12.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms12.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms12.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms12.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms12.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms6.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms6.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms12.2%
scantreewhitenoise/base.py:2625 ms12.2%
scantreewhitenoise/base.py:2625 ms12.2%
scantreewhitenoise/base.py:2625 ms12.2%
scantreewhitenoise/base.py:2625 ms12.2%
scantreewhitenoise/base.py:2622 ms6.1%
scantreewhitenoise/base.py:2642 ms6.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms6.1%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms6.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms6.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms6.1%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms6.1%
StaticFile.__init__whitenoise/responders.py:732 ms6.1%
StaticFile.get_headerswhitenoise/responders.py:1762 ms6.1%
ClientHandler.__call__django/test/client.py:1862 ms6.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms6.1%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms6.1%
mcpapps/mcp/urls.py:1252 ms6.1%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms6.1%
QuerySet.firstdjango/db/models/query.py:11452 ms6.1%
QuerySet.__iter__django/db/models/query.py:3902 ms6.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms6.1%
ModelIterable.__iter__django/db/models/query.py:952 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms6.1%
Cursor.executepsycopg/cursor.py:1132 ms6.1%
Connection.waitpsycopg/connection.py:4952 ms6.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()5 ms12.2%
TestCase._fixture_teardowndjango/test/testcases.py:14955 ms12.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4835 ms12.2%
CursorWrapper.executedjango/db/backends/utils.py:795 ms12.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms12.2%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms12.2%
Cursor.executepsycopg/cursor.py:1135 ms12.2%
Connection.waitpsycopg/connection.py:4955 ms12.2%
Estimated from 16 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/mcp/tests.py:66
return self.client.post(
McpTest.post
· Libraries
|
32 ms |
|
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate
· Database
|
2 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.04 ms |
| _django_clear_site_cache function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
7 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/mcp/tests.py:151
|
34 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
5 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| an hour ago | CI github-actions:test | passed | 40 ms | Profile |
| an hour ago | CI github-actions:test | passed | 38 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 42 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 19 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 37 ms | Profile |