Login | Register

Evaluating the Use of LLMs for Automated Resolution of Web Performance Issues

Title:

Evaluating the Use of LLMs for Automated Resolution of Web Performance Issues

Peters, Gideon ORCID: https://orcid.org/0009-0008-7627-2260 (2025) Evaluating the Use of LLMs for Automated Resolution of Web Performance Issues. Masters thesis, Concordia University.

[thumbnail of Peters_MASc_S2026.pdf]
Preview
Text (application/pdf)
Peters_MASc_S2026.pdf - Accepted Version
Available under License Spectrum Terms of Access.
770kB

Abstract

Users demand fast, seamless webpage experiences, yet developers often struggle to meet these expectations within tight constraints. Performance optimization, while critical, is a time-consuming and often manual process. One of the most complex tasks in this domain is modifying the Document Object Model (DOM), which is why this study focuses on it. Recent advances in Large Language Models (LLMs) offer a promising avenue to automate this complex task, potentially transforming how developers address web performance issues.
This study evaluates the effectiveness of nine state-of-the-art LLMs for automated web performance issue resolution.
For this purpose, we first extracted the DOM trees of 15 popular webpages (e.g., Facebook), and then we used Lighthouse to retrieve their performance audit reports. Subsequently, we passed the extracted DOM trees and corresponding audits to each model for resolution.
Our study considers 7 unique audit categories, revealing that LLMs universally excel at SEO & Accessibility issues. However, their efficacy in performance-critical DOM manipulations is mixed. While high-performing models like GPT-4.1 delivered significant reductions in areas like Initial Load, Interactivity, and Network Optimization (e.g., 46.52% to 48.68% audit incidence reductions), others, such as GPT-4o-mini, notably underperformed, consistently. A further analysis of these modifications showed a predominant additive strategy and frequent positional changes, alongside regressions particularly impacting Visual Stability.
Our study highlights LLMs' clear feasibility in web performance engineering workflows, particularly for semantic concerns. However, it critically underscores the need for careful model selection, understanding their specific modification patterns, and robust human oversight to ensure reliable web performance improvements.

Divisions:Concordia University > Gina Cody School of Engineering and Computer Science > Computer Science and Software Engineering
Item Type:Thesis (Masters)
Authors:Peters, Gideon
Institution:Concordia University
Degree Name:M.A. Sc.
Program:Software Engineering
Date:18 July 2025
Thesis Supervisor(s):Shihab, Emad
ID Code:995901
Deposited By: Gideon Peters
Deposited On:04 Nov 2025 18:24
Last Modified:04 Nov 2025 18:24
All items in Spectrum are protected by copyright, with all rights reserved. The use of items is governed by Spectrum's terms of access.

Repository Staff Only: item control page

Downloads per month over past year

Research related to the current document (at the CORE website)
- Research related to the current document (at the CORE website)
Back to top Back to top