How Chrome achieved the highest score ever on Speedometer 3

How Chrome achieved the highest score ever on Speedometer 3



Today’s The Fast and the Curious post explores how Chrome achieved the highest score on the new Speedometer 3.0, an upgraded browser benchmarking tool to optimize the performance of Web applications. Try out Chrome today! 

Speedometer 3.0 is a recently published benchmark for measuring browser performance that was created as an industry collaboration between companies like Google, Apple, Mozilla, Intel, and Microsoft. This benchmark helped us identify areas in which we could optimize Chrome to deliver a faster browser experience to all our users.

Here’s a closer look at how we further optimized Chrome to achieve the highest score ever Speedometer 3, by carefully tracking its recent performance over time as the updated benchmark was being developed. Since the inception of Speedometer 3 in May 2022, we’ve driven a 72% increase in Chrome’s Speedometer score – translating into performance gains for our users:

Optimizing workloads

By looking at the workloads in Speedometer and in which functions Chrome was spending the most time, we were able to make targeted optimizations to those functions that each drove an increase in Chrome’s score. For example, the SpaceSplitString function is used heavily to turn space-separated strings such as those in “class=’foo bar’ ” into a list representation. In this function we removed some unnecessary bound checks. When we detect that there are duplicated stylesheets, we dedupe them and reference a single stylesheet instance. We made an optimization to reduce the cost of drawing paths and arcs by tuning memory allocations. When creating form editors we detected some unnecessary processing that occurs when form elements are created. Within querySelector, we were able to detect what selector was commonly used and create a hot-path for that.

We previously shared how we optimized innerHTML using specialized fast paths for parsing, an implementation that also made its way into WebKit. Some workloads in Speedometer 3 use DOMParser so we extended the same optimization for another 1% gain.

We worked with the Harfbuzz maintainer to also optimize how Chrome renders AAT fonts such as those used by Apple Mac OS system fonts. Text starts as a processed stream of unicode characters that is then transformed into a glyph stream that is then run through a state machine defined in the AAT font. The optimization allows us to determine more quickly whether glyphs actually participate in the rules for the state machine, leading to speed-ups when processing text using AAT.

Picking the right code to focus on

An important strategy for achieving high performance is tiering up code, which is picking the right code to further optimize within the engine. Intel contributed profile guided tiering to V8 that remembers tiering decisions from the past such that if a function was stably tiered up in the past, we eagerly tier it up on future runs.

Improving garbage collection

Another area of changes that drove around 3% progression on Speedometer 3 was improvements around garbage collection. V8’s garbage collector has a long history of making use of renderer idle time to avoid interfering with actual application code. The recent changes follow this spirit by extending existing mechanisms to prefer garbage collection in idle time on otherwise very active renderers where possible. Specifically, DOM finalization code that is run on reclaiming objects is now also run in idle time. Previously, such operations would compete with regular application code over CPU resources. In addition, V8 now supports a much more compact layout for objects that wrap DOM elements, i.e., all objects that are exposed to JavaScript frameworks. The compact layout reduces memory pressure and results in less time spent on garbage collection.

Posted by Thomas Nattestad, Chrome Product Manager

OSNews needs your help to stay alive

As some of you will know, I recently started working on OSNews as my full-time job, and that means I sometimes need to be annoying and remind you all that I need your help in keeping the website going. Ad income has been going down the drain for years and years now, so your support is crucial in keeping OSNews online. We’ve been providing you with the latest technology news for over 25 years now, and I’d really like to keep things going for another 25 years. So, how can you help? You can become an OSNews Patreon, which will remove ads from OSNews, and give you a little bit of flair on every comment you post to show off that you support us. We offer three pricing tiers with an increasing level of prominence for your flair, with the highest tier giving you the option of choosing your own flair to really show off to your fellow readers and commenters that you are just a little bit more equal than everyone else. You can also make individual donations through Ko-Fi. Since I really need to replace the monitor of my OSNews workstation – after eight years of loyal use, the cheap monitor is started to show ghosting and flickering, and I feel like it could give out at any moment – I’ve set a goal on Ko-Fi for this very purpose. I don’t expect this goal to be met any time soon, but it’s a nice target to aim for and look forward to. I intend to replace the old 4K display with the cheapest 4K/144Hz panel I can find here in Sweden, but since that will most likely be unrealistic price-wise, the goal is rooted more in aspiration than reality. There are other ways to support us too – you can make a donation through Liberapay, or go to our merch store and buy T-shirts, mugs, and other cool items. The ultimate goal that I’m working towards is to eventually be able to offer ad-free by default, fully supported by you, our generous readers. This is a long-term goal and not something we’ll achieve overnight, but I want to maintain OSNews’ independence at all costs. Virtually every other technology news site you visit is part of a major media empire, such as The Verge or Ars Technica, with huge amounts of staff and massive funds backing them – and all the questionable relationships between writers and the technology companies that entails. Add to it the rise of artificial intelligence and the negative consequences that’s going to have, and the need for independent, reader-funded technology websites is greater than ever. That being said, we will not be gating content behind paywalls, so even if you cannot or are unwilling to support us, you will still get all the same content as everyone else. As such, supporting OSNews financially is entirely optional, and will not degrade your experience in any way. Still, OSNews’ continued existence is entirely dependent on me being able to generate enough income through it, so while you do not have to support us, it’s definitely needed.

Feel alone | Sad status | Alone status | Depreciation status | Fake smile sratus | cry status video

Video by via Dailymotion Source Feel alone | Sad status | Alone status | Depreciation status | Fake smile sratus | cry status videosad status,whatsapp status,heart broken status,feel alone | sad status | alone status | depreciation status | fake smile sratus | cry status video,depreciation status,alone status,status,instagram sad story status,motivational status,fake smile status video,whatsapp … Read more

Anac proíbe Aeroporto de Guarulhos (SP) de ampliar frequências de voos

Video by via Dailymotion Source O Aeroporto Internacional de Guarulhos, em São Paulo, está proibido de ampliar frequências de voos de passageiros até que solucione os problemas encontrados pela fiscalização da Agência Nacional de Aviação Civil (Anac) que colocam em risco a segurança das operações. Assista ao Jornal da Manhã completo: https://youtube.com/live/dhrklb1D5aI Baixe o app … Read more

Novice baker paradise: Effortless tiramisu recipe guarantees spoon-scraping satisfaction

Video by via Dailymotion Source Say goodbye to store-bought tiramisu and hello to your new favorite homemade indulgence! The layers of delicate ladyfingers soaked in rich coffee, nestled between clouds of creamy mascarpone cheese, and topped with a dusting of cocoa powder will make you forget about ever buying it from the store again. This … Read more

Xian Lim: “I don’t want to be defined by what happened with my break up” | 24 Oras

Video by via Dailymotion Source ‘Sing intense ng kanilang upcoming na film na “Playtime” ang mga naging sagot nina Xian Lim at Sanya Lopez sa kanilang pag-upo sa hot seat ng GMA Integrated News. Dito seryosong nagbahagi si Xian ng kaniyang mga pinagdaanan matapos ang nagdaan niyang relasyon. 24 Oras is GMA Network’s flagship newscast, … Read more

Citadel Securities and BlackRock Back New ‘CEO-Friendly’ Texas Stock Exchange Project, Offering…

Video by via Dailymotion Source Citadel Securities and BlackRock are among over two dozen investors backing a new project to start a national stock exchange called the Texas Stock Exchange based in Dallas, Texas. The TXSE has raised $120 million in funding so far from these investors. The TXSE aims to be a more “CEO-friendly” … Read more

Create Dynamic Dance Photo Reels Simply with the Pixify Reel Maker App

Video by via Dailymotion Source Unleash your creativity and craft dynamic dance photo reels effortlessly with the Pixify Reel Maker App. Enhance your dance photography with simple yet powerful editing tools. Transform ordinary dance photos into captivating reels with ease using the Pixify Reel Maker App’s intuitive features. https://thepixify.com/?utm_source=Seo&utm_medium=videosubmission&utm_campaign=pixify_web_promotions Go to Source