Optimising web interface performance using Amdahl`s law
Author
Prus, О.
Maidaniuk, V.
Прус, О. В.
Майданюк, В. П.
Date
2025Metadata
Show full item recordCollections
- Наукові роботи каф. ПЗ [1627]
Abstract
У статті розглянуто побудову та застосування узагальнених математичних моделей на основі закону
Амдала для визначення максимально можливого прискорення роботи веб-інтерфейсів з урахуванням їхніх
ключових особливостей. Запропоновано розширення класичного підходу шляхом включення до моделі
асинхронних процесів, механізмів різнорівневого кешування та методів динамічного завантаження ресурсів,
що дає змогу точніше оцінювати сумарний вплив різних оптимізацій на швидкодію. Зокрема, обґрунтовано
доцільність урахування асинхронного обміну даними, який дає змогу обробляти запити паралельно й уникати
блокувань у процесі оновлення контенту. Розроблено формулу, що враховує ефективність клієнтського
і серверного кешу та надає кількісну оцінку скорочення часу відгуку при повторному використанні вже
завантажених даних. Особливу увагу зосереджено на методиках покрокового отримання вмісту, коли початкове
завантаження сторінки мінімізується за рахунок відкладеного додавання окремих скриптів, зображень або
стилів, що дає змогу пришвидшити початкове відображення важливого контенту і зробити інтерфейс більш
чутливим до дій користувача. Окрім того, розглянуто вплив комплексного поєднання оптимізаційних стратегій
на продуктивність веб-інтерфейсу та запропоновано відповідну узагальнену модель, яка за допомогою
коефіцієнта взаємозалежності дозволяє визначити, наскільки одна оптимізація підсилює або, навпаки,
нівелює дію іншої. Це надає можливість прогнозувати сумарний приріст швидкодії та зіставляти витрати на
впровадження кількох рішень із потенційною економією часу. Запропонований формалізований підхід може
стати основою для створення автоматизованих засобів оцінки продуктивності веб-інтерфейсів, інтегрованих
у процес розробки. Перевірка моделі в трьох практичних сценаріях – частковий рендеринг з кешуванням
API, мініфікація JavaScript з content delivery network (CDN) та розділення коду з кешуванням на стороні
сервера – дала приріст продуктивності відповідно в 1,87×, 1,55 × та 1,64 ×, що повністю відповідає теоретичним
прогнозам. Отримані дані підтверджують здатність коефіцієнта взаємозалежності R точно відображати синергію
або накладання ефектів оптимізацій і роблять модель придатною для попереднього вибору найефективніших
стратегій прискорення на етапі CI/CD-аудиту. The article discussed the construction and application of generalised mathematical models based on
Amdahl’s law to determine the maximum possible acceleration of web interfaces, taking into account their key
features. An extension of the classical approach was proposed by including asynchronous processes, multi-level
caching mechanisms, and dynamic resource loading methods in the model, which allows for a more accurate
assessment of the cumulative impact of various optimisations on performance. In particular, the feasibility of
taking into account asynchronous data exchange was justified, which allows processing requests in parallel
and avoiding blockages in the process of updating content. A formula has been developed that takes into
account the effectiveness of client and server caches and provides a quantitative assessment of the reduction
in response time when reusing already loaded data. Particular attention was focused on step-by-step content
retrieval techniques, where the initial page load was minimised by deferring the addition of individual scripts,
images or styles, which speeds up the initial display of important content and makes the interface more
responsive to user actions. In addition, the impact of a comprehensive combination of optimisation strategies
on web interface performance was considered, and a corresponding generalised model was proposed, which
uses an interdependence coefficient to determine the extent to which one optimisation enhances or, conversely,
negates the effect of another. This makes it possible to predict the total performance gain and compare the
cost of implementing several solutions with the potential time savings. The proposed formalised approach
can serve as a basis for creating automated tools for evaluating web interface performance, integrated into
the development process. Testing the model in three practical scenarios – partial rendering with API caching,
JavaScript minification with a content delivery network (CDN), and code splitting with server-side caching –
yielded performance gains of 1.87×, 1.55 ×, and 1.64 ×, respectively, which was fully consistent with theoretical
predictions. The data obtained confirmed the ability of the R interdependence coefficient to accurately reflect
the synergy or overlap of optimisation effects and makes the model suitable for pre-selecting the most effective
acceleration strategies at the CI/CD audit stage.
URI:
https://ir.lib.vntu.edu.ua//handle/123456789/49063