-
Notifications
You must be signed in to change notification settings - Fork 50
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
Task 7 #46
base: master
Are you sure you want to change the base?
Task 7 #46
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.
👍 👍 💪 💪 respect
В нашем проекте тесты (6594) проходят за примерно 5,5 минут на CI (локально около 3 минут). | ||
|
||
Чуть меньше года назад была итерация по ускорению тестов, результат которой: | ||
30 минут -> 4 минуты (CI) |
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.
💪 💪
|
||
Чуть меньше года назад была итерация по ускорению тестов, результат которой: | ||
30 минут -> 4 минуты (CI) | ||
8,5 минут -> 3 минуты (локально) |
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.
💪
|
||
## Формирование метрики | ||
Для того, чтобы понимать, дают ли мои изменения положительный эффект на быстродействие программы я придумал использовать такую метрику: | ||
среднее время выполнения тестов за 3 запуска на локальной машине должно укладываться в 2 минуты |
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.
сорри за духоту, но это опять не метрика; среднее время за 3 запуска это метрика; а 2 минуты это бюджет;
|
||
name total top-level total time time per call top-level time | ||
было: company 2075 1268 24.2947s 0.0117s 14.6411s | ||
стало: company 2075 1268 18.5263s 0.0089s 10.9690s |
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.
да, можно в этом отчёте вообще посмотреть по time per call, какие фабрики сильно медленнее остальных и обратить на них внимание
Total: 19893 | ||
Total top-level: 12747 | ||
Total time: 01:36.860 (out of 03:06.752) | ||
Total uniq factories: 110 |
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.
раньше не было про uniq factories, клёвое нововведение
user 1629 1604 20.2135s 0.0124s 20.1218s | ||
Total: 19893 | ||
Total top-level: 12747 | ||
Total time: 01:36.860 (out of 03:06.752) |
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.
ахах, капец, половина от всех тестов юзеры создаются
|
||
user 1035 1010 13.4071s 0.0130s 13.3243s | ||
Total: 18057 | ||
Total top-level: 12143 |
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.
треть в каскадах получается
Took 67 seconds (1:07) | ||
Took 63 seconds (1:03) | ||
|
||
вполне себе успех, уложились в бюджет)) |
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.
йеее 💪
вполне себе успех, уложились в бюджет)) | ||
|
||
## Результаты | ||
В результате проделанной оптимизации наконец удалось уложиться в бюджет в 120 секунд на локальной машине |
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.