JSOPT: A Framework for Optimization of JavaScript on Web Browsers

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 h...

Full description

Bibliographic Details
Main Authors: Muhammad Waqas, Minhaj Ahmad Khan
Format: Article
Language:English
Published: Mehran University of Engineering and Technology 2018-01-01
Series:Mehran University Research Journal of Engineering and Technology
Online Access:http://publications.muet.edu.pk/index.php/muetrj/article/view/105
_version_ 1811241900982665216
author Muhammad Waqas
Minhaj Ahmad Khan
author_facet Muhammad Waqas
Minhaj Ahmad Khan
author_sort Muhammad Waqas
collection DOAJ
description 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 and 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.
first_indexed 2024-04-12T13:43:54Z
format Article
id doaj.art-9eec1df8c3cd4cd192ee7f50c220dcd6
institution Directory Open Access Journal
issn 0254-7821
2413-7219
language English
last_indexed 2024-04-12T13:43:54Z
publishDate 2018-01-01
publisher Mehran University of Engineering and Technology
record_format Article
series Mehran University Research Journal of Engineering and Technology
spelling doaj.art-9eec1df8c3cd4cd192ee7f50c220dcd62022-12-22T03:30:46ZengMehran University of Engineering and TechnologyMehran University Research Journal of Engineering and Technology0254-78212413-72192018-01-01371105JSOPT: A Framework for Optimization of JavaScript on Web BrowsersMuhammad Waqas0Minhaj Ahmad Khan1Department of Computer Science, BahauddinZakariya University, Multan.Department of Computer Science, Bahauddin Zakariya University, Multan.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 and 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.http://publications.muet.edu.pk/index.php/muetrj/article/view/105
spellingShingle Muhammad Waqas
Minhaj Ahmad Khan
JSOPT: A Framework for Optimization of JavaScript on Web Browsers
Mehran University Research Journal of Engineering and Technology
title JSOPT: A Framework for Optimization of JavaScript on Web Browsers
title_full JSOPT: A Framework for Optimization of JavaScript on Web Browsers
title_fullStr JSOPT: A Framework for Optimization of JavaScript on Web Browsers
title_full_unstemmed JSOPT: A Framework for Optimization of JavaScript on Web Browsers
title_short JSOPT: A Framework for Optimization of JavaScript on Web Browsers
title_sort jsopt a framework for optimization of javascript on web browsers
url http://publications.muet.edu.pk/index.php/muetrj/article/view/105
work_keys_str_mv AT muhammadwaqas jsoptaframeworkforoptimizationofjavascriptonwebbrowsers
AT minhajahmadkhan jsoptaframeworkforoptimizationofjavascriptonwebbrowsers