Open
Conversation
spajic
approved these changes
Mar 14, 2025
| ``` | ||
|
|
||
| ### Feedback-Loop | ||
| Для того, чтобы иметь возможность быстро проверять гипотезы я решил использовать часть тестов которые я хорошо знаю и которые с обычным запуском через `rspec` проходят сейчас за 25 секунд. |
| ``` | ||
| name total top-level total time time per call top-level time | ||
|
|
||
| card 769 516 7.4789s 0.0097s 4.8298s |
Collaborator
There was a problem hiding this comment.
а реально необходимо 516 раз создавать card, или можно как-то зареюзать?
also, можно попробовать посмотреть, нельзя ли что-то ускорить в самом создании одного card, потому что 7 секунд на 700 штук выглядит довольно медленно (можно сравнить с другими фабриками по этому показателю)
Author
There was a problem hiding this comment.
Не указал тут, но скидывал в чат, что создание фабрик занимает почти 70% времени тестов(
Да, надо ещё будет поразбираться. Есть места где создаются лишние, но в отдельных тестах они не выглядят как точки роста, а в общей массе не понятно с чего начинать
| card_token 769 42 1.9425s 0.0025s 0.1034s | ||
| ``` | ||
| Он показал что мы вместе с `card` создаем `card_token`, который хранит в себе некоторую дополнительную информацию, а данную информацию мы никак не используем в текущих тестах. | ||
| Так же был построен flamegraph |
| ``` | ||
|
|
||
| ### Результаты | ||
| Получилось использовать `test-prof` в рабочем проекте, но, CI с правками не показал каких либо изменений (запускается в 20 потоков). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.