Google's Chrome Browser Is About To Get A Lot Faster
Google has shipped a new JavaScript compiler for its V8 JavaScript engine in Chrome called Sparkplug that promises a much faster web experience – and it does it by 'cheating', according to the engineers on the project.
Sparkplug is part of Chrome 91, which Google released on Tuesday with security updates but also some key changes under the hood that improve its powerful JavaScript engine, V8.
Microsoft relies on V8 these days too after ditching its Chakra JavaScript engine from legacy Edge and moving to Chromium for the new Edge browser and switching to V8.
SEE: Managing and troubleshooting Android devices checklist (TechRepublic Premium)
Google says Chrome 91 has 23% faster performance thanks to Sparkplug's integration into V8's JavaScript pipeline.
V8 plays an important role in the browser experience in virtually every page on the web since most of them rely on a browser executing JavaScript, the default language for front-end web development.
"An important component of delivering a fast browser is fast JavaScript execution," explains Thomas Nattestad, a Chrome product manager in a blogpost.
"In Chrome, that job is done by the V8 engine which executes over 78 years worth of JavaScript code on a daily basis. In M91 Chrome is now up to 23% faster with the launch of a new Sparkplug compiler and short builtin calls, saving over 17 years of our users' CPU time each day."
The Sparkplug compiler sits between V8's Ignition bytecode interpreter and the TurboFan optimizing compiler.
The V8 team has detailed its work on the Sparkplug compiler in a blogpost too, noting that Sparkplug improves browser performance because it "cheats" by relying on compiling heavy lifting already done by the Ignition interpreter. It calls its Sparkplug a "non-optimising JavaScript compiler".
"First of all, it cheats; the functions it compiles have already been compiled to bytecode, and the bytecode compiler has already done most of the hard work… Sparkplug compiles from bytecode rather than from JavaScript source, and so doesn't have to worry about any of that," the V8 team said.
"Sparkplug strikes a balance between Ignition and Turbofan in that it does generate native machine code but does not depend on information gathered while executing the JavaScript code. This lets it start executing quickly while still generating relatively fast code," explains Nattestad.
For end users, this means a faster experience on the web. Google's V8 JavaScript engine, which arrived in 2008, was an important shift in competition between browser makers. V8 let developers write much larger applications for the browser in JavaScript and gave Google Chrome and the open-source Chromium project a lead over other mainstream browsers.
Microsoft is also claiming major performance improvements with its Chromium-based Edge 91 release. At its developer conference, it highlighted the 'startup boost' feature for faster page loads and sleeping tabs to drastically cut memory usage. With yesterday's release of Edge 91, Microsoft now claims Edge is "the best performing browser on Windows 10."
Reassessing AI Investments: What The Correction In US Megacap Tech Stocks Signals
The recent correction in US megacap tech stocks, including giants like Nvidia, Tesla, Meta, and Alphabet, has sent rippl... Read more
AI Hype Meets Reality: Assessing The Impact Of Stock Declines On Future Tech Investments
Recent declines in the stock prices of major tech companies such as Nvidia, Tesla, Meta, and Alphabet have highlighted a... Read more
Technology Sector Fuels U.S. Economic Growth In Q2
The technology sector played a pivotal role in accelerating America's economic growth in the second quarter of 2024.The ... Read more
Tech Start-Ups Advised To Guard Against Foreign Investment Risks
The US National Counterintelligence and Security Center (NCSC) has advised American tech start-ups to be wary of foreign... Read more
Global IT Outage Threatens To Cost Insurers Billions
Largest disruption since 2017’s NotPetya malware attack highlights vulnerabilities.A recent global IT outage has cause... Read more
Global IT Outage Disrupts Airlines, Financial Services, And Media Groups
On Friday morning, a major IT outage caused widespread disruption across various sectors, including airlines, financial ... Read more