4.6 Article

Evolving JavaScript Code to Reduce Load Time

Journal

IEEE TRANSACTIONS ON SOFTWARE ENGINEERING
Volume 47, Issue 8, Pages 1544-1558

Publisher

IEEE COMPUTER SOC
DOI: 10.1109/TSE.2019.2928293

Keywords

Software; Syntactics; Genetic programming; Software algorithms; Heuristic algorithms; Libraries; Runtime; JavaScript; source code improvement; genetic programming; local search

Funding

  1. Nucleo Avancado de Computacao de Alto Desempenho (NACAD) of COPPE/UFRJ
  2. CAPES
  3. CNPq

Ask authors/readers for more resources

This paper introduces an evolutionary program improvement technique to reduce the size of JavaScript programs, with experimental results showing a relationship between the quality of a program's test suite and its ability to reduce the source code size.
JavaScript is one of the most used programming languages for front-end development of Web applications. The increase in complexity of front-end features brings concerns about performance, especially the load and execution time of JavaScript code. In this paper, we propose an evolutionary program improvement technique to reduce the size of JavaScript programs and, therefore, the time required to load and execute them in Web applications. To guide the development of this technique, we performed an experimental study to characterize the patches applied to JavaScript programs to reduce their size while keeping the functionality required to pass all test cases in their test suites. We applied this technique to 19 JavaScript programs varying from 92 to 15,602 LOC and observed reductions from 0.2 to 73.8 percent of the original code, as well as a relationship between the quality of a program's test suite and the ability to reduce the size of its source code.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.6
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available