Google Updates Chrome To Match Safari Battery Life On M2 MacBook Pro (9to5google.com) 10
After widely rolling out an Energy Saver mode, Google has made four optimizations to Chrome for Mac that allows the browser to match the battery life you get when using Safari. 9to5Google reports: Google conducted testing on a MacBook Pro (13", M2, 2022 with 8 GB RAM running macOS Ventura 13.2.1) with Chrome 110.0.5481.100 in February of 2023. It showed that you can "browse for 17 hours or watch YouTube for 18 hours." For comparison, Apple touts up to 17 hours of wireless web browsing, and up to 20 hours Apple TV app movie playback. Meanwhile, Google uses this open-source benchmarking suite to run tests, and says that users will also "see performance gains on older models." Four changes from waking the CPU less often to tuning memory compression are specifically credited:
- Eliminating unnecessary redraws: "We navigated on real-world sites with a bot and identified Document Object Model (DOM) change patterns that don't affect pixels on the screen. We modified Chrome to detect those early and bypass the unnecessary style, layout, paint, raster and gpu steps. We implemented similar optimizations for changes to the Chrome UI."
- Fine tuning iframes: "...we fine-tuned the garbage collection and memory compression heuristics for recently created iframes. This results in less energy consumed to reduce short-term memory usage (without impact on long-term memory usage)."
- Tweaking timers: "...Javascript timers still drive a large proportion of a Web page's power consumption. As a result, we tweaked the way they fire in Chrome to let the CPU wake up less often. Similarly, we identified opportunities to cancel internal timers when they're no longer needed, reducing the number of times that the CPU is woken up."
- Streamlining data structures: "We identified data structures in which there were frequent accesses with the same key and optimized their access pattern."
- Eliminating unnecessary redraws: "We navigated on real-world sites with a bot and identified Document Object Model (DOM) change patterns that don't affect pixels on the screen. We modified Chrome to detect those early and bypass the unnecessary style, layout, paint, raster and gpu steps. We implemented similar optimizations for changes to the Chrome UI."
- Fine tuning iframes: "...we fine-tuned the garbage collection and memory compression heuristics for recently created iframes. This results in less energy consumed to reduce short-term memory usage (without impact on long-term memory usage)."
- Tweaking timers: "...Javascript timers still drive a large proportion of a Web page's power consumption. As a result, we tweaked the way they fire in Chrome to let the CPU wake up less often. Similarly, we identified opportunities to cancel internal timers when they're no longer needed, reducing the number of times that the CPU is woken up."
- Streamlining data structures: "We identified data structures in which there were frequent accesses with the same key and optimized their access pattern."
Firefox? (Score:1)
Re: Firefox? (Score:1)
Firefox has similar battery usage as Safari/Chrome on my Macbook.
Granted, it's mostly because I don't actually launch it anymore, but still it seems to follow the others... but from a very safe distance!
That is sad (Score:5, Insightful)
The web is so bloated now that it takes more power than watching high def video.
Re: (Score:3)
The web is so bloated now that it takes more power than watching high def video.
The M2 has hardware support for YouTube video codecs.
There is no accelerator for JavaScript-based bloatware.
Re: (Score:2)
Hardware support still requires power.
Re: (Score:2)
Google has done a lot to reduce the impact of Javascript in Chrome. It aggressively pauses Javascript that is in background tabs or which is abusing the battery.
Firefox needs to copy it because the difference is huge when comparing Chrome and Firefox on Android.
So, almost as good as a Chromebook? (Score:2)
Other than the price.
Why even want Google Chrome for Mac ? (Score:2)
Memory Usage (Score:1)
Re: (Score:1)