Google speeds up Google Chrome by compiling JavaScript in the background

Google Chrome

Google speeds up Google Chrome by compiling JavaScript in the background.Compiling in the background for a smoother user experience.

Here is the Official blog post of announcement Chrome Blog

In the latest Chrome Beta we’ve enabled concurrent compilation, which offloads a large part of the optimizing compilation phase to a background thread. The result is that JavaScript applications remain responsive and performance gets a boost.

The graphs below show excerpts of V8’s vital signs when running Mandreel, part of the Octane benchmark suite, on the Nexus 5 phone. The graphs have been created using our new profiling visualization tool. The black bar represents execution of JavaScript, and ideally would be solid.

The first graph shows V8 running without concurrent compilation. V8 is fully occupied with optimizing a large piece of code, causing an execution pause of more than 600ms.

mandreel sync benchmarking
mandreel sync benchmarking

By enabling concurrent compilation, V8 still optimizes a large piece of code, but does it in a background thread. Execution continues alongside compilation, providing for a smoother user experience. For instance, concurrent compilation improved the Mandreel score of Octane 2.0 by 27% on a Nexus 5 and made graphic-intensive applications such as the Epic Citadel Demo run even smoother in Chrome.

mandreel async benchmarking
mandreel async benchmarking

Concurrent code compilation is another step towards reducing latency in Chrome and is part of various ongoing efforts to deliver more responsive, smoother web applications. 

JavaScript heavy web applications will get a huge performance benefit from this change to Google Chrome.

Don’t Know Google Chrome ? Watch this video and see its performance.


Please comment your thoughts!


The following two tabs change content below.

Mohammed Sadiq

Hi, I am Mohammed Sadiq an OpenSource Technology Fanboy and a Computer Nerd! I Love Ruby, RubyonRails, Drupal, Wordpress, Ubuntu, Postgres, Mysql, Nginx and Blogging.