-
Notifications
You must be signed in to change notification settings - Fork 50
Used test-prof #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Used test-prof #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 ✅
``` | ||
|
||
### Feedback-Loop | ||
Для того, чтобы иметь возможность быстро проверять гипотезы я решил использовать часть тестов которые я хорошо знаю и которые с обычным запуском через `rspec` проходят сейчас за 25 секунд. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 nice move
``` | ||
name total top-level total time time per call top-level time | ||
|
||
card 769 516 7.4789s 0.0097s 4.8298s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а реально необходимо 516 раз создавать card, или можно как-то зареюзать?
also, можно попробовать посмотреть, нельзя ли что-то ускорить в самом создании одного card, потому что 7 секунд на 700 штук выглядит довольно медленно (можно сравнить с другими фабриками по этому показателю)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не указал тут, но скидывал в чат, что создание фабрик занимает почти 70% времени тестов(
Да, надо ещё будет поразбираться. Есть места где создаются лишние, но в отдельных тестах они не выглядят как точки роста, а в общей массе не понятно с чего начинать
card_token 769 42 1.9425s 0.0025s 0.1034s | ||
``` | ||
Он показал что мы вместе с `card` создаем `card_token`, который хранит в себе некоторую дополнительную информацию, а данную информацию мы никак не используем в текущих тестах. | ||
Так же был построен flamegraph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
``` | ||
|
||
### Результаты | ||
Получилось использовать `test-prof` в рабочем проекте, но, CI с правками не показал каких либо изменений (запускается в 20 потоков). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.