CI
github-actions:test
15 runs
Average
53 ms
median 58 ms
max 77 ms
max 77 ms
Phases
Setup 0.64 ms
Call 52 ms
Teardown 0.15 ms
Categories
Database 34 ms
App code 0.60 ms
Other (Libraries, Unsampled, pytest) 18 ms
23 database queries per run
Needs 185 KB of memory (max 572 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call47 ms98.6%
McpTest.test_list_slow_testsapps/mcp/tests.py:212 result = self.call("list_slow_tests", limit=5)22 ms47.1%
McpTest.callapps/mcp/tests.py:8222 ms47.1%
McpTest.rpcapps/mcp/tests.py:7522 ms47.1%
McpTest.postapps/mcp/tests.py:67 return self.client.post(22 ms47.1%
Client.postdjango/test/client.py:115322 ms47.1%
RequestFactory.postdjango/test/client.py:49922 ms47.1%
RequestFactory.genericdjango/test/client.py:67122 ms47.1%
Client.requestdjango/test/client.py:108222 ms47.1%
ClientHandler.__call__django/test/client.py:17316 ms34.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6216 ms34.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10416 ms34.3%
WhiteNoise.add_fileswhitenoise/base.py:10816 ms34.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12012 ms25.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13112 ms25.7%
WhiteNoise.get_static_filewhitenoise/base.py:2088 ms17.1%
StaticFile.__init__whitenoise/responders.py:774 ms8.6%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.3%
__init____init__:-12 ms4.3%
Headers.__init__<stdlib>/wsgiref/headers.py:422 ms4.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms4.3%
StaticFile.get_alternativeswhitenoise/responders.py:2082 ms4.3%
StaticFile.__init__whitenoise/responders.py:762 ms4.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms4.3%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms4.3%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms4.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:462 ms4.3%
StaticFile.__init__whitenoise/responders.py:732 ms4.3%
StaticFile.get_headerswhitenoise/responders.py:1812 ms4.3%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms8.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms8.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms8.6%
scantreewhitenoise/base.py:2624 ms8.6%
scantreewhitenoise/base.py:2624 ms8.6%
scantreewhitenoise/base.py:2624 ms8.6%
scantreewhitenoise/base.py:2624 ms8.6%
scantreewhitenoise/base.py:2642 ms4.3%
scantreewhitenoise/base.py:2622 ms4.3%
scantreewhitenoise/base.py:2642 ms4.3%
ClientHandler.__call__django/test/client.py:1866 ms12.9%
BaseHandler.get_responsedjango/core/handlers/base.py:1416 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1306 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:346 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1986 ms12.9%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:656 ms12.9%
mcpapps/mcp/urls.py:1476 ms12.9%
handleapps/mcp/urls.py:1156 ms12.9%
call_toolapps/mcp/urls.py:756 ms12.9%
Tools.callapps/mcp/tools.py:1886 ms12.9%
Tools.list_slow_testsapps/mcp/tools.py:2646 ms12.9%
slow_testsapps/projects/analytics.py:4502 ms4.3%
categories_by_testapps/projects/analytics.py:424 for test_id, run_count, categories in rows.filter(test_id__in=test_ids).values_list(2 ms4.3%
QuerySet.filterdjango/db/models/query.py:15422 ms4.3%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms4.3%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms4.3%
Query.add_qdjango/db/models/sql/query.py:16712 ms4.3%
Query._add_qdjango/db/models/sql/query.py:17032 ms4.3%
Query.build_filterdjango/db/models/sql/query.py:16132 ms4.3%
Query.build_lookupdjango/db/models/sql/query.py:14402 ms4.3%
slow_testsapps/projects/analytics.py:453 TestSnapshot.objects.filter(scope.environment_q(), test_id__in=ids)2 ms4.3%
QuerySet.__iter__django/db/models/query.py:3902 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms4.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms4.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms4.3%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms4.3%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms4.3%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms4.3%
slow_testsapps/projects/analytics.py:465 suite_time = scope.profiles().aggregate(avg=Avg("test_time"))["avg"] or 02 ms4.3%
QuerySet.aggregatedjango/db/models/query.py:5942 ms4.3%
Query.get_aggregationdjango/db/models/sql/query.py:4672 ms4.3%
Aggregate.resolve_expressiondjango/db/models/aggregates.py:1222 ms4.3%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2972 ms4.3%
Func.copydjango/db/models/expressions.py:11332 ms4.3%
McpTest.test_list_slow_testsapps/mcp/tests.py:22020 ms42.9%
McpTest.callapps/mcp/tests.py:8220 ms42.9%
McpTest.rpcapps/mcp/tests.py:7520 ms42.9%
McpTest.postapps/mcp/tests.py:67 return self.client.post(20 ms42.9%
Client.postdjango/test/client.py:115320 ms42.9%
RequestFactory.postdjango/test/client.py:49920 ms42.9%
RequestFactory.genericdjango/test/client.py:67120 ms42.9%
Client.requestdjango/test/client.py:108220 ms42.9%
ClientHandler.__call__django/test/client.py:18620 ms42.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14120 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13020 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12320 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30920 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3420 ms42.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5520 ms42.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19820 ms42.9%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6520 ms42.9%
mcpapps/mcp/urls.py:14714 ms30.0%
handleapps/mcp/urls.py:11514 ms30.0%
call_toolapps/mcp/urls.py:7514 ms30.0%
Tools.callapps/mcp/tools.py:18814 ms30.0%
Tools.list_slow_testsapps/mcp/tools.py:26412 ms25.7%
slow_testsapps/projects/analytics.py:442 rows = list(4 ms8.6%
QuerySet.__iter__django/db/models/query.py:3904 ms8.6%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms8.6%
ValuesIterable.__iter__django/db/models/query.py:2224 ms8.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15734 ms8.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms4.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms4.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:872 ms4.3%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4912 ms4.3%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:3622 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
slow_testsapps/projects/analytics.py:4502 ms4.3%
categories_by_testapps/projects/analytics.py:424 for test_id, run_count, categories in rows.filter(test_id__in=test_ids).values_list(2 ms4.3%
QuerySet.__iter__django/db/models/query.py:3902 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms4.3%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
slow_testsapps/projects/analytics.py:453 TestSnapshot.objects.filter(scope.environment_q(), test_id__in=ids)2 ms4.3%
QuerySet.__iter__django/db/models/query.py:3902 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
slow_testsapps/projects/analytics.py:461 for perf in TestPerf.objects.filter(2 ms4.3%
QuerySet.__iter__django/db/models/query.py:3902 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
slow_testsapps/projects/analytics.py:465 suite_time = scope.profiles().aggregate(avg=Avg("test_time"))["avg"] or 02 ms4.3%
QuerySet.aggregatedjango/db/models/query.py:5942 ms4.3%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
Tools.list_slow_testsapps/mcp/tools.py:2632 ms4.3%
Tools.scopeapps/mcp/tools.py:1802 ms4.3%
resolve_scopeapps/projects/analytics.py:198 selected = Environment.objects.filter(project=project, name=env).first()2 ms4.3%
QuerySet.firstdjango/db/models/query.py:11452 ms4.3%
QuerySet.__iter__django/db/models/query.py:3902 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
mcpapps/mcp/urls.py:1254 ms8.6%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms4.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.3%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())2 ms4.3%
QuerySet.updatedjango/db/models/query.py:13002 ms4.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16222 ms4.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.3%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms4.3%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms4.3%
mcpapps/mcp/urls.py:153 return JsonResponse(response)2 ms4.3%
JsonResponse.__init__django/http/response.py:7602 ms4.3%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms4.3%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms4.3%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms4.3%
Atomic.__enter__django/db/transaction.py:2112 ms4.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.3%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.3%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms4.3%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms4.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
Estimated from 23 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
|
16 ms |
|
apps/projects/analytics.py:424
for test_id, run_count, categories in rows.filter(test_id__in=test_ids).values_list(
categories_by_test
· Database
|
4 ms |
|
apps/projects/analytics.py:453
TestSnapshot.objects.filter(scope.environment_q(), test_id__in=ids)
slow_tests
· Database
|
4 ms |
|
apps/projects/analytics.py:465
suite_time = scope.profiles().aggregate(avg=Avg("test_time"))["avg"] or 0
slow_tests
· Database
|
4 ms |
|
apps/projects/analytics.py:442
rows = list(
slow_tests
· Database
|
4 ms |
|
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate
· Database
|
2 ms |
|
apps/mcp/urls.py:57
SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())
authenticate
· Database
|
2 ms |
|
apps/projects/analytics.py:198
selected = Environment.objects.filter(project=project, name=env).first()
resolve_scope
· Database
|
2 ms |
|
apps/projects/analytics.py:461
for perf in TestPerf.objects.filter(
slow_tests
· Database
|
2 ms |
|
apps/mcp/urls.py:153
return JsonResponse(response)
mcp
· Libraries
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.03 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
23 queries · 8 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/mcp/tests.py:212
|
43 ms |
|
call _pre_setup
django/test/testcases.py:1164
|
2 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 | 47 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 63 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 31 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 62 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 33 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 53 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 77 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 36 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 61 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 59 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 58 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 68 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 33 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 60 ms | Profile |