DocumentCode :
679619
Title :
Making JavaScript Better by Making It Even Slower
Author :
Swiech, Maciej ; Dinda, Peter
fYear :
2013
fDate :
14-16 Aug. 2013
Firstpage :
70
Lastpage :
79
Abstract :
On mobile devices, such as smart phones and tablets, client-side JavaScript is a significant contributor to power consumption, and thus battery lifetime. We claim that this is partially due to JavaScript interpretation running faster than is necessary to maintain a satisfactory user experience, and we propose that JavaScript implementations include a user-configurable throttle. To evaluate our claim we developed a web proxy system, named JSSlow, that reduces power consumption by transcoding client-side JavaScript and injecting "sleep" invocations. This can be done safely, even given JavaScript\´s single-threaded nature, through the use of continuation passing, and the proxy model requires neither server nor client-side changes. Using JSSlow we studied the 120 most popular sites and found that the technique could reduce power consumption by an average of 5% on Android phones. We also considered buggy code (52% reduction) and advertising (10% reduction). To evaluate the system\´s impact on the user experience, we conducted a user study consisting of interactive tasks the user carried out on. The perceived performance impact varies by user and site, with the variation being highest on the most interactive sites, such as games. This argues for making the throttle user-configurable in some cases.
Keywords :
Internet; Java; Web sites; interactive programming; mobile computing; power aware computing; smart phones; transcoding; Android phones; JSSlow; JavaScript interpretation; JavaScript single-threaded nature; Web proxy system; battery lifetime; buggy code; client-side JavaScript transcoding; continuation passing; interactive sites; interactive tasks; mobile devices; power consumption; proxy model; satisfactory user experience; sleep invocations; smartphones; tablets; user-configurable throttle; Advertising; Batteries; Browsers; Power demand; Power measurement; Smart phones; Web sites; Human Computer Interaction; Mobile Computing; Performance Evaluation; World Wide Web;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Modeling, Analysis & Simulation of Computer and Telecommunication Systems (MASCOTS), 2013 IEEE 21st International Symposium on
Conference_Location :
San Francisco, CA
ISSN :
1526-7539
Type :
conf
DOI :
10.1109/MASCOTS.2013.15
Filename :
6730750
Link To Document :
بازگشت