Google Chrome is now dramatically faster - here's why
V8 engine improvements have boosted Chrome's speed by almost a quarter
Since its launch back in 2008, speed has been one of the four core principles alongside security, stability and simplicity that Google has focused on to make Chrome one of the best browsers available.
The V8 JavaScript compiler is an important part of these efforts as it takes the JavaScript found on practically every website and executes it while browsing in Chrome. In fact, the V8 engine used in Chrome executes over 78 years worth of JavaScript code on a daily basis.
Now though, improvements to the V8 engine have allowed Google to deliver up to 23 percent faster performance in its browser according to a new post in the Chromium Blog. Thanks to the recent launch of a new Sparkplug compiler and short builtin calls in M91 Chrome, Google's browser saves over 17 years of users' CPU time each day.
- We've built a list of the best browsers available
- These are the best VPN services on the market
- Also check out our roundup of the best Windows 10 VPN
Sparkplug is a new JavaScript compiler that optimizes code for maximum performance and short builtin calls optimize where in memory Google puts generated code to avoid indirect jumps when calling functions.
V8 engine improvements
The V8 engine uses multiple compilers to execute JavaScript and three years ago Google launched a new two-tier compiler system made up of Ignition and Turbofan.
While Ignition is a bytecode interpreter that starts executing JavaScript with as little delay as possible, Turbofan is an optimizing compiler that generates high-performance machine code using information gathered during JavaScript execution. However, as a result, Turbofan starts up more slowly than Ignition's bytecode compiler. For this reason, Google has launched Sparkplug which strikes a balance between the two by generating native machine code without having to depend on information gathered while executing JavaScript code.
Short builtins on the other hand is a mechanism that the V8 engine uses to optimize the location in memory of generated code. When V8 generates CPU-specific code from JavaScript, this code is laid out in memory and will frequently call builtin functions which are small snippets of code for handling common routines.
Are you a pro? Subscribe to our newsletter
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
For some CPUs though, calling functions that are further away from generated code can cause CPU-internal optimizations to fail. In order to fix this, Chrome now copies the builtin functions into the same memory region as the generated code which makes a huge difference on Apple's new M1 chips.
As more of work is now done in browsers than ever before, the under the hood changes Google has made to Chrome will certainly help save users time and perhaps even help boost their productivity.
- We've also highlighted the best business VPN
After working with the TechRadar Pro team for the last several years, Anthony is now the security and networking editor at Tom’s Guide where he covers everything from data breaches and ransomware gangs to the best way to cover your whole home or business with Wi-Fi. When not writing, you can find him tinkering with PCs and game consoles, managing cables and upgrading his smart home.