Title
Dynamically accelerating client-side web applications through decoupled execution
Abstract
The emergence and wide adoption of web applications have moved the client-side component, often written in JavaScript, to the forefront of computing on the web. Web application developers try to move more computation to the client side to avoid unnecessary network traffic and make the applications more responsive. Therefore, JavaScript applications are becoming larger and more computation intensive. Trace-based just-in-time compilation have been proposed to address the performance bottleneck in these applications. In this paper, we exploit the extra processing power in multicore systems to further improve the performance of trace-based execution of JavaScript programs. In trace-based engines, a considerable portion of execution time is spent on running guards which are operations inserted in the native code to check if the properties assumed by the compiled code actually hold during execution. We introduce ParaGuard to off-load these guards to another thread, while speculatively executing the main trace. In a manner similar to what happens in current trace-based JITs, if a check fails, ParaGuard aborts the native trace execution and reverts back to interpreting the JavaScript bytecode. We also propose several optimizations including guard branch aggregation and profile-based snapshot elimination to further improve the performance of our technique. We show that ParaGuard can achieve an average of 15% performance improvement over current trace-based compilers using an extra processor on commodity multicore processors.
Year
DOI
Venue
2011
10.1109/CGO.2011.5764676
CGO
Keywords
Field
DocType
trace-based engine,performance improvement,native trace execution,client-side web application,performance bottleneck,execution time,decoupled execution,javascript application,current trace-based compiler,javascript bytecode,current trace-based jits,javascript program,just in time compiler,compiled code,multi threading,speculative execution,web application development,java,optimization,internet,multicore processors,instruction sets,games
Client-side,Computer science,Parallel computing,Compiled language,Compiler,Real-time computing,Machine code,Web application,Multi-core processor,Bytecode,Operating system,JavaScript
Conference
ISSN
ISBN
Citations 
2164-2397
978-1-61284-356-8
15
PageRank 
References 
Authors
0.75
11
2
Name
Order
Citations
PageRank
Mojtaba Mehrara11768.12
Scott Mahlke24811312.08