CI
github-actions:test
12 runs
Average
66 ms
median 74 ms
max 89 ms
max 89 ms
Phases
Setup 0.68 ms
Call 66 ms
Teardown 0.17 ms
Categories
Database 46 ms
App code 0.25 ms
Test code 0.22 ms
Other (Libraries, Unsampled, Serialization, pytest) 20 ms
48 database queries per run
Needs 204 KB of memory (max 576 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
call88 ms98.8%
SettingsTest.test_deleteapps/orgs/tests.py:180 response = self.client.post(reverse("org_delete", args=["acme"]), {"confirm": "acme"})65 ms73.6%
Client.postdjango/test/client.py:115365 ms73.6%
RequestFactory.postdjango/test/client.py:49965 ms73.6%
RequestFactory.genericdjango/test/client.py:67165 ms73.6%
Client.requestdjango/test/client.py:108265 ms73.6%
ClientHandler.__call__django/test/client.py:18665 ms73.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14165 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13065 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30965 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12365 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30965 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30965 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30965 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30965 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30965 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30965 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3465 ms73.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5565 ms73.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19865 ms73.6%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:5965 ms73.6%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6465 ms73.6%
org_deleteapps/orgs/views.py:308 organization.delete()65 ms73.6%
Model.deletedjango/db/models/base.py:129760 ms67.8%
Collector.collectdjango/db/models/deletion.py:34960 ms67.8%
CASCADEdjango/db/models/deletion.py:2360 ms67.8%
Collector.collectdjango/db/models/deletion.py:34757 ms63.9%
QuerySet.__bool__django/db/models/query.py:40457 ms63.9%
QuerySet._fetch_alldjango/db/models/query.py:200057 ms63.9%
ModelIterable.__iter__django/db/models/query.py:9557 ms63.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162457 ms63.9%
CursorWrapper.executedjango/db/backends/utils.py:7957 ms63.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9257 ms63.9%
CursorWrapper._executedjango/db/backends/utils.py:10557 ms63.9%
Cursor.executepsycopg/cursor.py:11357 ms63.9%
Connection.waitpsycopg/connection.py:49557 ms63.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:20657 ms63.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28657 ms63.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7857 ms63.9%
Collector.collectdjango/db/models/deletion.py:3273 ms3.9%
Collector.related_objectsdjango/db/models/deletion.py:4103 ms3.9%
QuerySet.filterdjango/db/models/query.py:15423 ms3.9%
QuerySet._filter_or_excludedjango/db/models/query.py:15603 ms3.9%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15703 ms3.9%
Query.add_qdjango/db/models/sql/query.py:16713 ms3.9%
Query._add_qdjango/db/models/sql/query.py:17033 ms3.9%
Query.build_filterdjango/db/models/sql/query.py:15283 ms3.9%
Query._add_qdjango/db/models/sql/query.py:17033 ms3.9%
Query.build_filterdjango/db/models/sql/query.py:15992 ms1.9%
Query.trim_joinsdjango/db/models/sql/query.py:20222 ms1.9%
Query.build_filterdjango/db/models/sql/query.py:15772 ms1.9%
Query.setup_joinsdjango/db/models/sql/query.py:19872 ms1.9%
Model.deletedjango/db/models/base.py:12985 ms5.8%
Collector.deletedjango/db/models/deletion.py:4715 ms5.8%
QuerySet._raw_deletedjango/db/models/query.py:12605 ms5.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16245 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:795 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms5.8%
Cursor.executepsycopg/cursor.py:1135 ms5.8%
Connection.waitpsycopg/connection.py:4955 ms5.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms5.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms5.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms5.8%
SettingsTest.test_deleteapps/orgs/tests.py:178 response = self.client.post(reverse("org_delete", args=["acme"]), {"confirm": "nope"})22 ms25.2%
Client.postdjango/test/client.py:115322 ms25.2%
RequestFactory.postdjango/test/client.py:49922 ms25.2%
RequestFactory.genericdjango/test/client.py:67122 ms25.2%
Client.requestdjango/test/client.py:108222 ms25.2%
ClientHandler.__call__django/test/client.py:17322 ms25.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6222 ms25.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10422 ms25.2%
WhiteNoise.add_fileswhitenoise/base.py:10822 ms25.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12022 ms25.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms23.2%
WhiteNoise.get_static_filewhitenoise/base.py:20821 ms23.2%
StaticFile.__init__whitenoise/responders.py:7312 ms13.6%
StaticFile.get_headerswhitenoise/responders.py:1769 ms9.7%
formatdate<stdlib>/email/utils.py:2595 ms5.8%
formatdate<stdlib>/email/utils.py:2663 ms3.9%
format_datetime<stdlib>/email/utils.py:2842 ms1.9%
StaticFile.get_headerswhitenoise/responders.py:1783 ms3.9%
StaticFile.__init__whitenoise/responders.py:773 ms3.9%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms1.9%
__init____init__:-12 ms1.9%
StaticFile.__init__whitenoise/responders.py:723 ms3.9%
StaticFile.get_file_statswhitenoise/responders.py:1572 ms1.9%
StaticFile.__init__whitenoise/responders.py:762 ms1.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms1.9%
Estimated from 51 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/orgs/views.py:308
organization.delete()
org_delete
· Database
|
65 ms |
|
apps/orgs/tests.py:178
response = self.client.post(reverse("org_delete", args=["acme"]), {"confirm": "nope"})
SettingsTest.test_delete
· Libraries
|
22 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.07 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _django_set_urlconf function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
48 queries · 20 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
3×
SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > %s AND "django_session"."session_key" = %s) LIMIT ?
Biggest pieces of work
|
call test body
apps/orgs/tests.py:180
|
88 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 | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 89 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 39 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 66 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 57 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 82 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 44 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 76 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 75 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 73 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 76 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 39 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 81 ms | Profile |