CI
github-actions:test
5 runs
Average
34 ms
median 36 ms
max 39 ms
max 39 ms
Phases
Setup 0.69 ms
Call 33 ms
Teardown 0.19 ms
Categories
Database 3 ms
Other (Libraries, Unsampled, pytest) 30 ms
6 database queries per run
Needs 166 KB of memory (max 252 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, an hour ago ·
open run
call37 ms97.3%
CallInfo.from_call_pytest/runner.py:35337 ms97.3%
call_and_report.<locals>.<lambda>_pytest/runner.py:24537 ms97.3%
HookCaller.__call__pluggy/_hooks.py:51237 ms97.3%
PluginManager._hookexecpluggy/_manager.py:12037 ms97.3%
_multicallpluggy/_callers.py:12137 ms97.3%
pytest_runtest_call_pytest/runner.py:17937 ms97.3%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57337 ms97.3%
SimpleTestCase.__call__django/test/testcases.py:31337 ms97.3%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36832 ms86.5%
TestCase.__call__<stdlib>/unittest/case.py:74732 ms86.5%
TestCase.run<stdlib>/unittest/case.py:69132 ms86.5%
TestCase._callTestMethod<stdlib>/unittest/case.py:63732 ms86.5%
ProfileUploadTest.test_no_tokenapps/api/tests.py:622 response = self.client.post("/api/v1/profile", data=b"{}", content_type="application/json")32 ms86.5%
Client.postdjango/test/client.py:115332 ms86.5%
RequestFactory.postdjango/test/client.py:49932 ms86.5%
RequestFactory.genericdjango/test/client.py:67132 ms86.5%
Client.requestdjango/test/client.py:108232 ms86.5%
ClientHandler.__call__django/test/client.py:17328 ms75.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6228 ms75.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10428 ms75.6%
WhiteNoise.add_fileswhitenoise/base.py:10828 ms75.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms54.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms54.0%
WhiteNoise.get_static_filewhitenoise/base.py:20816 ms43.2%
StaticFile.__init__whitenoise/responders.py:728 ms21.6%
StaticFile.get_file_statswhitenoise/responders.py:1618 ms21.6%
StaticFile.__init__whitenoise/responders.py:734 ms10.8%
StaticFile.get_headerswhitenoise/responders.py:1784 ms10.8%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms10.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms10.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1158 ms21.6%
scantreewhitenoise/base.py:2624 ms10.8%
scantreewhitenoise/base.py:2624 ms10.8%
scantreewhitenoise/base.py:2644 ms10.8%
ClientHandler.__call__django/test/client.py:1864 ms10.8%
BaseHandler.get_responsedjango/core/handlers/base.py:1414 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1304 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:344 ms10.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms10.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1984 ms10.8%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:654 ms10.8%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:374 ms10.8%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:644 ms10.8%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))4 ms10.8%
get_object_or_404django/shortcuts.py:904 ms10.8%
QuerySet.getdjango/db/models/query.py:6354 ms10.8%
QuerySet.__len__django/db/models/query.py:3724 ms10.8%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms10.8%
ModelIterable.__iter__django/db/models/query.py:954 ms10.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms10.8%
CursorWrapper.executedjango/db/backends/utils.py:794 ms10.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms10.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1004 ms10.8%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms10.8%
Cursor.executepsycopg/cursor.py:1134 ms10.8%
Connection.waitpsycopg/connection.py:4954 ms10.8%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3714 ms10.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms10.8%
TestCase._fixture_teardowndjango/test/testcases.py:14974 ms10.8%
TestCase._rollback_atomicsdjango/test/testcases.py:14054 ms10.8%
Atomic.__exit__django/db/transaction.py:2834 ms10.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms10.8%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4134 ms10.8%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3714 ms10.8%
CursorWrapper.executedjango/db/backends/utils.py:794 ms10.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms10.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1004 ms10.8%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms10.8%
Cursor.executepsycopg/cursor.py:1134 ms10.8%
Connection.waitpsycopg/connection.py:4954 ms10.8%
Estimated from 9 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/api/tests.py:622
response = self.client.post("/api/v1/profile", data=b"{}", content_type="application/json")
ProfileUploadTest.test_no_token
· Libraries
|
28 ms |
|
apps/api/urls.py:72
project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))
api_request.<locals>.decorator.<locals>.wrapped_view
· Database
|
4 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.07 ms |
| _django_db_marker function | 0.06 ms |
| _django_set_urlconf function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| monkeypatch function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
Database
6 queries · 2 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/api/tests.py:622
|
32 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
4 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 | 38 ms | Profile |
| an hour ago | CI github-actions:test | passed | 36 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 39 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 21 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 36 ms | Profile |