CI
github-actions:test
15 runs
Average
34 ms
median 40 ms
max 49 ms
max 49 ms
Phases
Setup 0.65 ms
Call 34 ms
Teardown 0.15 ms
Categories
Database 6 ms
App code 0.14 ms
Other (Libraries, pytest, Unsampled, Cache) 28 ms
7 database queries per run
Needs 111 KB of memory (max 632 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call29 ms97.7%
McpTest.test_tools_listapps/mcp/tests.py:113 tools = self.rpc("tools/list")["result"]["tools"]27 ms90.7%
McpTest.rpcapps/mcp/tests.py:7527 ms90.7%
McpTest.postapps/mcp/tests.py:67 return self.client.post(27 ms90.7%
Client.postdjango/test/client.py:115327 ms90.7%
RequestFactory.postdjango/test/client.py:49927 ms90.7%
RequestFactory.genericdjango/test/client.py:67127 ms90.7%
Client.requestdjango/test/client.py:108227 ms90.7%
ClientHandler.__call__django/test/client.py:17319 ms62.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6219 ms62.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10419 ms62.8%
WhiteNoise.add_fileswhitenoise/base.py:10819 ms62.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12014 ms48.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms48.8%
WhiteNoise.get_static_filewhitenoise/base.py:20814 ms48.8%
StaticFile.__init__whitenoise/responders.py:7210 ms34.9%
StaticFile.get_file_statswhitenoise/responders.py:1618 ms27.9%
__init____init__:-18 ms27.9%
FileEntry.__init__whitenoise/responders.py:2638 ms27.9%
FileEntry.stat_regular_filewhitenoise/responders.py:2768 ms27.9%
<GC>~8 ms27.9%
StaticFile.__init__whitenoise/responders.py:774 ms14.0%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms7.0%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms7.0%
__init____init__:-12 ms7.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms14.0%
scantreewhitenoise/base.py:2624 ms14.0%
scantreewhitenoise/base.py:2624 ms14.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2642 ms7.0%
scantreewhitenoise/base.py:2642 ms7.0%
ClientHandler.__call__django/test/client.py:1868 ms27.9%
BaseHandler.get_responsedjango/core/handlers/base.py:1418 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1308 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1238 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:348 ms27.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms27.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1988 ms27.9%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:658 ms27.9%
mcpapps/mcp/urls.py:1258 ms27.9%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()4 ms14.0%
QuerySet.firstdjango/db/models/query.py:11454 ms14.0%
QuerySet.__iter__django/db/models/query.py:3904 ms14.0%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms14.0%
ModelIterable.__iter__django/db/models/query.py:952 ms7.0%
ModelIterable.__iter__django/db/models/query.py:1272 ms7.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms7.0%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15262 ms7.0%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())4 ms14.0%
QuerySet.updatedjango/db/models/query.py:13002 ms7.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms7.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms7.0%
Cursor.executepsycopg/cursor.py:1132 ms7.0%
Connection.waitpsycopg/connection.py:4952 ms7.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms7.0%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms7.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms7.0%
Cursor.executepsycopg/cursor.py:1132 ms7.0%
Connection.waitpsycopg/connection.py:4952 ms7.0%
Estimated from 14 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/mcp/tests.py:67
return self.client.post(
McpTest.post
· Libraries
|
19 ms |
|
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate
· Database
|
4 ms |
|
apps/mcp/urls.py:57
SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())
authenticate
· App code
|
4 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 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.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
7 queries · 2 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/mcp/tests.py:113
|
27 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 30 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 40 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 22 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 45 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 42 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 25 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 18 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 44 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 43 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 19 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 37 ms | Profile |