JSOPT: A Framework for Optimization of JavaScript on Web Browsers
Journal: Mehran University Research Journal of Engineering and Technology (Vol.37, No. 1)Publication Date: 2018-01-01
Authors : Muhammad Waqas Minhaj Ahmad Khan;
Page : 95-104
Keywords : JavaScript; Threads; Performance; Web Browsers; Code Generation;
Abstract
In the current era where multi-core technologies are very common in use, the existing web browsers are unable to fully utilize the capability of multi-core processors.The web browsers execute the JavaScript code locally in order to produce an efficient response of web pages. This responsiveness is however limited by the fact that the JavaScript code is uni-threaded, and consequently, the efficiency of the code degrades if it involves a large number of computations. In this paper, we propose a framework called JSOPT (JavaScript Optimizer) which generates an efficient JavaScript code to effectively utilize multi-core architectures. The framework uses a template containing constructs for communication & synchronization, and subsequently generates optimized code to be executed on the multi-core architectures. Multiple instances of templates are then generated with different implementations of the code and the best instance is selected to be incorporated in the library. With the optimized code generated using JSOPT, our results show a significant improvement in the performance of several benchmarks involving intensive computations based matrix operations on the Mozilla Firefox web browser.
Other Latest Articles
- Assessment of prevalence and risk factors of peripheral arterial disease in diabetic foot ulcer
- Change Detection Algorithms for Surveillance in Visual IoT: A Comparative Study
- Early versus interval cholecystectomy for acute cholecystitis: 5 years local experience
- Large Banks of Negative Differential Resistance Nonlinear Loads: A Hidden Threat to Power System Quality
- A Comparative Study of Risk Stratifications Scores for Acute Heart Failure Patients in the Emergency Department, Egypt
Last modified: 2018-02-03 18:03:34