Skip to content

Conversation

@elenachekhina
Copy link

No description provided.

Copy link
Collaborator

@spajic spajic left a 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)
Copy link
Collaborator

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 минуты (локально)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪


## Формирование метрики
Для того, чтобы понимать, дают ли мои изменения положительный эффект на быстродействие программы я придумал использовать такую метрику:
среднее время выполнения тестов за 3 запуска на локальной машине должно укладываться в 2 минуты
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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)
Copy link
Collaborator

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
Copy link
Collaborator

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)

вполне себе успех, уложились в бюджет))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

йеее 💪

вполне себе успех, уложились в бюджет))

## Результаты
В результате проделанной оптимизации наконец удалось уложиться в бюджет в 120 секунд на локальной машине
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да ближе даже к одной минуте, отлично!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants