Tests / starter_packs/tests.py
TestPinAccountInStarterPack::test_unpinned_pack_orders_by_followers
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
203 ms
median 133 ms
max 689 ms
max 689 ms
Phases
Setup 7 ms
Call 192 ms
Teardown 3 ms
Categories
Database 40 ms
Factories 0.65 ms
App code 0.58 ms
Other (Libraries, Templates, pytest, Deep copies, ...) 162 ms
13 database queries per run
Needs 209 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call177 ms98.8%
TestPinAccountInStarterPack.test_unpinned_pack_orders_by_followersstarter_packs/tests.py:1087 response = self.client.get(self.share_url())174 ms96.9%
Client.getdjango/test/client.py:1133174 ms96.9%
RequestFactory.getdjango/test/client.py:475174 ms96.9%
RequestFactory.genericdjango/test/client.py:671174 ms96.9%
Client.requestdjango/test/client.py:1091174 ms96.9%
ClientHandler.__call__django/test/client.py:173109 ms60.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63109 ms60.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104109 ms60.7%
WhiteNoise.add_fileswhitenoise/base.py:108109 ms60.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120109 ms60.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131109 ms60.7%
WhiteNoise.get_static_filewhitenoise/base.py:21277 ms42.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:23377 ms42.6%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17677 ms42.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19777 ms42.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:2077 ms42.6%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:23577 ms42.6%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:20877 ms42.6%
WhiteNoise.get_static_filewhitenoise/base.py:21733 ms18.1%
StaticFile.__init__whitenoise/responders.py:7632 ms17.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:19032 ms17.7%
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18665 ms36.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14265 ms36.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5665 ms36.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38065 ms36.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5665 ms36.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38065 ms36.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5665 ms36.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38065 ms36.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5665 ms36.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12365 ms36.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5665 ms36.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14565 ms36.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5665 ms36.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38065 ms36.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5665 ms36.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms35.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms35.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms35.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms35.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms35.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms35.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms35.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms35.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms35.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms35.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms35.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms35.8%
BaseHandler._get_responsedjango/core/handlers/base.py:19964 ms35.8%
share_starter_packstarter_packs/views.py:862 return render(39 ms21.7%
renderdjango/shortcuts.py:2739 ms21.7%
render_to_stringdjango/template/loader.py:6232 ms17.7%
Template.renderdjango/template/backends/django.py:10732 ms17.7%
Template.renderdjango/template/base.py:17532 ms17.7%
instrumented_test_renderdjango/test/utils.py:11332 ms17.7%
NodeList.renderdjango/template/base.py:110832 ms17.7%
Node.render_annotateddjango/template/base.py:106932 ms17.7%
ExtendsNode.renderdjango/template/loader_tags.py:16032 ms17.7%
instrumented_test_renderdjango/test/utils.py:11332 ms17.7%
NodeList.renderdjango/template/base.py:110832 ms17.7%
Node.render_annotateddjango/template/base.py:106932 ms17.7%
BlockNode.renderdjango/template/loader_tags.py:6628 ms15.4%
NodeList.renderdjango/template/base.py:110828 ms15.4%
Node.render_annotateddjango/template/base.py:106928 ms15.4%
IfNode.renderdjango/template/defaulttags.py:33211 ms6.3%
Page.__len__django/core/paginator.py:31211 ms6.3%
QuerySet.__len__django/db/models/query.py:42111 ms6.3%
QuerySet._fetch_alldjango/db/models/query.py:226211 ms6.3%
ModelIterable.__iter__django/db/models/query.py:10311 ms5.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:796 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms2.3%
Cursor.executepsycopg/cursor.py:1134 ms2.3%
Connection.waitpsycopg/connection.py:4954 ms2.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16125 ms2.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7685 ms2.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:903 ms1.8%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4922 ms1.4%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2972 ms1.4%
BaseExpression.copydjango/db/models/expressions.py:4442 ms1.4%
copy<stdlib>/copy.py:1002 ms1.4%
_reconstruct<stdlib>/copy.py:2482 ms1.4%
__newobj__<stdlib>/copyreg.py:1042 ms1.4%
deconstructible.<locals>.decorator.<locals>.__new__django/utils/deconstruct.py:172 ms1.4%
deconstructible.<locals>.decorator.<locals>.__new__django/utils/deconstruct.py:-12 ms1.4%
1 smaller frames hidden
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms0.9%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms0.9%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms0.9%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms0.9%
Exists.as_sqldjango/db/models/expressions.py:19062 ms0.9%
Subquery.as_sqldjango/db/models/expressions.py:18762 ms0.9%
Query.as_sqldjango/db/models/sql/query.py:13182 ms0.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms0.9%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms0.9%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms0.9%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms0.9%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms0.9%
Value.as_sqldjango/db/models/expressions.py:11792 ms0.9%
IntegerField.get_db_prep_valuedjango/db/models/fields/__init__.py:22162 ms0.9%
DatabaseOperations.adapt_integerfield_valuedjango/db/backends/postgresql/operations.py:3232 ms0.9%
1 smaller frames hidden
SimpleNode.renderdjango/template/library.py:3438 ms4.5%
render_language_emojisaccounts/templatetags/account_extras.py:27 f"<img src='{static(lang.image)}' class='emojione' alt=':{lang.code}:' title=':{lang.code}:' />",7 ms4.1%
staticdjango/templatetags/static.py:1797 ms4.1%
StaticNode.handle_simpledjango/templatetags/static.py:1297 ms4.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms2.3%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms2.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2144 ms2.3%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:6114 ms2.3%
urlunsplit<stdlib>/urllib/parse.py:6674 ms2.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:212 ms1.4%
1 smaller frames hidden
1 smaller frames hidden
IncludeNode.renderdjango/template/loader_tags.py:2116 ms3.2%
Template.renderdjango/template/base.py:1776 ms3.2%
instrumented_test_renderdjango/test/utils.py:1136 ms3.2%
NodeList.renderdjango/template/base.py:11086 ms3.2%
Node.render_annotateddjango/template/base.py:10696 ms3.2%
ForNode.renderdjango/template/defaulttags.py:2496 ms3.2%
Node.render_annotateddjango/template/base.py:10696 ms3.2%
IncludeNode.renderdjango/template/loader_tags.py:2004 ms2.3%
Engine.select_templatedjango/template/engine.py:2284 ms2.3%
Engine.get_templatedjango/template/engine.py:1864 ms2.3%
Engine.find_templatedjango/template/engine.py:1594 ms2.3%
Loader.get_templatedjango/template/loaders/cached.py:574 ms2.3%
Loader.get_templatedjango/template/loaders/base.py:283 ms1.8%
__init____init__:-13 ms1.8%
Template.__init__django/template/base.py:1583 ms1.8%
Template.compile_nodelistdjango/template/base.py:2002 ms1.4%
Parser.parsedjango/template/base.py:6012 ms1.4%
Library.simple_tag.<locals>.dec.<locals>.compile_funcdjango/template/library.py:1412 ms0.9%
parse_bitsdjango/template/library.py:4632 ms0.9%
Parser.compile_filterdjango/template/base.py:6942 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
IncludeNode.renderdjango/template/loader_tags.py:2112 ms0.9%
Template.renderdjango/template/base.py:1772 ms0.9%
instrumented_test_renderdjango/test/utils.py:1132 ms0.9%
NodeList.renderdjango/template/base.py:11082 ms0.9%
Node.render_annotateddjango/template/base.py:10692 ms0.9%
IfNode.renderdjango/template/defaulttags.py:3332 ms1.4%
NodeList.renderdjango/template/base.py:11082 ms1.4%
Node.render_annotateddjango/template/base.py:10692 ms1.4%
ForNode.renderdjango/template/defaulttags.py:2492 ms0.9%
Node.render_annotateddjango/template/base.py:10692 ms0.9%
IncludeNode.renderdjango/template/loader_tags.py:2002 ms0.9%
Engine.select_templatedjango/template/engine.py:2282 ms0.9%
Engine.get_templatedjango/template/engine.py:1862 ms0.9%
Engine.find_templatedjango/template/engine.py:1592 ms0.9%
Loader.get_templatedjango/template/loaders/cached.py:572 ms0.9%
Loader.get_templatedjango/template/loaders/base.py:232 ms0.9%
Loader.get_contentsdjango/template/loaders/cached.py:262 ms0.9%
Loader.get_contentsdjango_cotton/cotton_loader.py:242 ms0.9%
CottonTemplateCacheHandler.get_cache_keydjango_cotton/cotton_loader.py:1182 ms0.9%
TemplateDoesNotExist.__init__django/template/exceptions.py:282 ms0.9%
<GC>~2 ms0.9%
1 smaller frames hidden
TranslateNode.renderdjango/templatetags/i18n.py:904 ms2.3%
FilterExpression.resolvedjango/template/base.py:8064 ms2.3%
Variable.resolvedjango/template/base.py:9524 ms2.3%
keep_lazy.<locals>.decorator.<locals>.wrapperdjango/utils/functional.py:2314 ms2.3%
mark_safedjango/utils/safestring.py:784 ms2.3%
render_to_stringdjango/template/loader.py:617 ms4.1%
get_templatedjango/template/loader.py:157 ms4.1%
DjangoTemplates.get_templatedjango/template/backends/django.py:797 ms4.1%
Engine.get_templatedjango/template/engine.py:1867 ms4.1%
Engine.find_templatedjango/template/engine.py:1597 ms4.1%
Loader.get_templatedjango/template/loaders/cached.py:577 ms4.1%
Loader.get_templatedjango/template/loaders/base.py:287 ms4.1%
__init____init__:-17 ms4.1%
Template.__init__django/template/base.py:1587 ms4.1%
Template.compile_nodelistdjango/template/base.py:2007 ms4.1%
Parser.parsedjango/template/base.py:6017 ms4.1%
do_extendsdjango/template/loader_tags.py:3077 ms4.1%
Parser.parsedjango/template/base.py:6017 ms4.1%
do_blockdjango/template/loader_tags.py:2357 ms4.1%
Parser.parsedjango/template/base.py:6017 ms4.1%
do_ifdjango/template/defaulttags.py:9947 ms4.1%
Parser.parsedjango/template/base.py:5467 ms4.1%
property.__get__<stdlib>/enum.py:1887 ms4.1%
share_starter_packstarter_packs/views.py:86015 ms8.6%
pack_header_avatarsstarter_packs/views.py:75 StarterPackAccount.objects.filter(11 ms5.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8711 ms5.9%
pack_header_avatarsstarter_packs/views.py:89 for pack_id, avatar, handle, name in rows:5 ms2.7%
QuerySet.__iter__django/db/models/query.py:4395 ms2.7%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms2.7%
ValuesListIterable.__iter__django/db/models/query.py:2635 ms2.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15745 ms2.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms2.7%
CursorWrapper.executedjango/db/backends/utils.py:795 ms2.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms2.7%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms2.7%
Cursor.executepsycopg/cursor.py:1135 ms2.7%
Connection.waitpsycopg/connection.py:4955 ms2.7%
share_starter_packstarter_packs/views.py:858 owners = list(starter_pack.owners.select_related("accountaccess__account").order_by("username"))7 ms4.1%
QuerySet.__iter__django/db/models/query.py:4397 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:22627 ms4.1%
ModelIterable.__iter__django/db/models/query.py:1037 ms3.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms3.6%
CursorWrapper.executedjango/db/backends/utils.py:797 ms3.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms3.6%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms3.2%
Cursor.executepsycopg/cursor.py:1136 ms3.2%
Connection.waitpsycopg/connection.py:4956 ms3.2%
1 smaller frames hidden
share_starter_packstarter_packs/views.py:886 .count(),2 ms1.4%
QuerySet.countdjango/db/models/query.py:6772 ms1.4%
Query.get_countdjango/db/models/sql/query.py:6572 ms1.4%
Query.get_aggregationdjango/db/models/sql/query.py:6392 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.4%
Cursor.executepsycopg/cursor.py:1132 ms1.4%
Connection.waitpsycopg/connection.py:4952 ms1.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.9%
1 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms1.8%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms0.9%
2 smaller frames hidden
teardown1 ms0.6%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)1 ms0.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms0.6%
Atomic.__exit__django/db/transaction.py:3071 ms0.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.6%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3371 ms0.6%
Estimated from 219 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:1087
response = self.client.get(self.share_url())
TestPinAccountInStarterPack.test_unpinned_pack_orders_by_followers
· Libraries
|
110 ms |
|
starter_packs/views.py:862
return render(
share_starter_pack
· Templates
|
31 ms |
|
starter_packs/views.py:75
StarterPackAccount.objects.filter(
pack_header_avatars
· Database
|
11 ms |
|
accounts/templatetags/account_extras.py:27
f"<img src='{static(lang.image)}' class='emojione' alt=':{lang.code}:' title=':{lang.code}:' />",
render_language_emojis
· Templates
|
7 ms |
|
starter_packs/views.py:858
owners = list(starter_pack.owners.select_related("accountaccess__account").order_by("username"))
share_starter_pack
· Database
|
7 ms |
|
starter_packs/views.py:89
for pack_id, avatar, handle, name in rows:
pack_header_avatars
· Database
|
5 ms |
|
starter_packs/views.py:886
.count(),
share_starter_pack
· Database
|
2 ms |
|
accounts/templatetags/account_extras.py:21
@register.simple_tag
render_language_emojis
· Templates
|
0.81 ms |
Fixtures
Exact setup time| _django_db_marker function | 0.06 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_isolate_apps function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
12 queries · 28 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:1087
|
174 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
3 ms |
|
teardown tearDownClass
django/test/testcases.py:1456
|
1 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 | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 180 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 74 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 259 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 164 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 133 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 111 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 84 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 100 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 689 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 122 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 316 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 96 ms | Run |