arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1803.01683cs.SEcs.NE
收藏

网页加载时间的演化性研究

Investigating the Evolvability of Web Page Load Time

Brendan Cody-Kenny, Umberto Manganiello, John Farrelly, Adrian Ronayne, Eoghan Considine, Thomas McGuire, Michael O'Neill

摘要:

客户端JavaScript执行环境(浏览器)允许匿名函数和基于事件的编程概念,如回调。我们调查是否可以使用一个突变和测试的方法来优化网页加载时间在这些环境中。首先,我们在一个基准测试网页中发现一个网页加载问题,并从页面加载事件跟踪中获得性能指标。我们将JavaScript源代码解析为AST,并对出现在网页加载事件跟踪中的方法调用进行更改。我们提出了一个运营商完全基于代码删除和评估现有的“社区贡献”的性能优化代码转换。通过探索JavaScript代码更改和利用非破坏性更改的组合,我们可以在基准网页中将页面加载时间优化41%。

英文摘要:

Client-side Javascript execution environments (browsers) allow anonymous functions and event-based programming concepts such as callbacks. We investigate whether a mutate-and-test approach can be used to optimise web page load time in these environments. First, we characterise a web page load issue in a benchmark web page and derive performance metrics from page load event traces. We parse Javascript source code to an AST and make changes to method calls which appear in a web page load event trace. We present an operator based solely on code deletion and evaluate an existing "community-contributed" performance optimising code transform. By exploring Javascript code changes and exploiting combinations of non-destructive changes, we can optimise page load time by 41% in our benchmark web page.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑