Evaluating JavaScript Execution Behavior and Improving the Performance of Web Applications with Thread-Level Speculation

Document type: Licentiates
Full text:
Author(s): Jan Kasper Martinsen
Title: Evaluating JavaScript Execution Behavior and Improving the Performance of Web Applications with Thread-Level Speculation
Series: Blekinge Institute of Technology Licentiate Dissertion Series
Year: 2011
Issue: 12
ISBN: 978-91-7295-220-1
ISSN: 1650-2140
Publisher: Blekinge Institute of Technology
City: Karlskrona
Organization: Blekinge Institute of Technology
Department: School of Computing (Sektionen för datavetenskap och kommunikation)
School of Computing S-371 79 Karlskrona
+46 455 38 50 00
http://www.bth.se/com
Authors e-mail: jan.kasper.martinsen@bth.se
Language: English
Abstract: This thesis addresses two issues: (i) The execution behavior of JavaScript in established benchmarks and in real-world Web Applications and (ii) whether Thread-Level Speculation is a suitable technique for taking advantage of multicore systems in Web Applications written in JavaScript.

The first key result is that JavaScript execution behavior by the benchmarks and the JavaScript execution behavior by the Web Applications differ in several important aspects. For instance Web Applications often use function types such as anonymous and eval functions. Our results also show that just-in-time compilation often increases the execution time of Web Applications, despite that just-in-time compilation decreases the execution time for most of the benchmarks.

The second key result is that our implementation of Thread-Level Speculation shows that it can be used to take advantage of multicore systems for Web Applications. We have measured the effect on the execution time for a set of Web Applications, and found that we are able to reduce JavaScript execution time more than 8 times compared to the sequential version on a dual quad core computer. For our use-cases we found that we used between 1.1 and 31.0 MB to store information associated with speculation.
Subject: Computer Science\Computersystems
URN: urn:nbn:se:bth-00514
Edit