-
Notifications
You must be signed in to change notification settings - Fork 92
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 4 #147
base: master
Are you sure you want to change the base?
Task 4 #147
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.
👍 ✅
## Часть 1 | ||
## Формирование метрики | ||
Для того, чтобы понимать, дают ли мои изменения положительный эффект на быстродействие программы я придумал использовать такую метрику: | ||
1) Время загрузки стартовой страницы должно укладываться в 0.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.
блин, сори за очередную духоту, но это опять не метрика 😁
метрика это скажем время загрузки страницы, которое ты измеряешь по определённой процедуре; например, загружаешь 4 раза, первый отбрасываешь, и берёшь среднее от остальных трёх
а < 0.3c это бюджет получается
``` | ||
|
||
В целом, без прараллельности запрос укладывается в бюджет, проверим будет ли укладывтаься в бюджет с прараллельностью в local_production. | ||
Однако было бы неплохо разобравться почему так происходит. Мое предположение, что это происходит из-за блокировки обших ресурсов. Например базы данных. |
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.
да-да, разобраться бы не помешало; мошт там пума настроена однопоточно или что-то в таком роде, и весь concurrency только во вред в таком случае (но я не помню, надо бы чекнуть)
|
||
## Результаты | ||
В результате проделанной оптимизации удалось ускорить загрузку до ~1 секунды в development окружении. | ||
В local_production время ускорилось до ~0.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.
👍 👍
No description provided.