Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Task 4 #147

wants to merge 3 commits into from

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.

👍 ✅

## Часть 1
## Формирование метрики
Для того, чтобы понимать, дают ли мои изменения положительный эффект на быстродействие программы я придумал использовать такую метрику:
1) Время загрузки стартовой страницы должно укладываться в 0.3 секунды
Copy link
Collaborator

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.
Однако было бы неплохо разобравться почему так происходит. Мое предположение, что это происходит из-за блокировки обших ресурсов. Например базы данных.
Copy link
Collaborator

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 секунд
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