Google has announced that its Chrome browser is now up to 23 percent faster and saves users 17 years of CPU time daily.
A key component of delivering a fast browser is fast JavaScript execution.
“In Chrome, that job is done by the V8 JavaScript engine, which executes over 78 years’ worth of JavaScript code on a daily basis.
“In M91, Chrome is now up to 23 percent faster with the launch of a new Sparkplug compiler and short built-in calls, saving over 17 years of our users’ CPU time each day.
Sparkplug is a new JavaScript compiler that fills the gap between needing to start executing quickly and optimizing the code for maximum performance.
“Short built-in calls optimize where in memory we put generated code to avoid indirect jumps when calling functions,” Google said in an update.
The V8 engine has multiple compilers, which can make different tradeoffs throughout the various phases of executing JavaScript.
Short builtins is a mechanism by which the V8 engine optimizes the location in memory of generated code.
“This change is especially impactful for the new Apple M1 chip,” Google said.
Google’s V8 JavaScript engine was launched in 2008.
It lets developers write much larger applications for the browser in JavaScript and gave Google Chrome and the open-source Chromium project a lead over other browsers.
Microsoft also released version 91 of its Chromium-based Edge browser this week. The company claimed “sleeping” tabs now save up to 82 percent of the demand on memory.