New heuristics make web browsers run faster by parallelizing JavaScript code
Researchers have developed adaptive algorithms that allow JavaScript—designed as single-threaded code—to run in parallel across multiple processor cores, delivering measurable speed improvements on popular websites. The technique could become critical as web applications grow more complex and competition for user engagement intensifies.
Originaltitel: Heuristics for Thread-Level Speculation in Web Applications
<p>JavaScript is a sequential programming language, and Thread-Level Speculation has been proposed to dynamically extract parallelism in order to take advantage of parallel hardware. In previous work, we have showed significant speed-ups with a simple on/off speculation heuristic. In this paper, we propose and evaluate three heuristics for dynamically adapt the speculation: a 2-bit heuristic, an exponential heuristic, and a combination of these two. Our results show that the combined heuristic is able to both increase the number of successful speculations and decrease the execution time for 15 popular web applications.</p>