this post was submitted on 12 Jun 2024
82 points (96.6% liked)

Android

17659 readers
229 users here now

The new home of /r/Android on Lemmy and the Fediverse!

Android news, reviews, tips, and discussions about rooting, tutorials, and apps.

🔗Universal Link: !android@lemdro.id


💡Content Philosophy:

Content which benefits the community (news, rumours, and discussions) is generally allowed and is valued over content which benefits only the individual (technical questions, help buying/selling, rants, self-promotion, etc.) which will be removed if it's in violation of the rules.


Support, technical, or app related questions belong in: !askandroid@lemdro.id

For fresh communities, lemmy apps, and instance updates: !lemdroid@lemdro.id

💬Matrix Chat

💬Telegram channels / chats

📰Our communities below


Rules

  1. Stay on topic: All posts should be related to the Android OS or ecosystem.

  2. No support questions, recommendation requests, rants, or bug reports: Posts must benefit the community rather than the individual. Please post to !askandroid@lemdro.id.

  3. Describe images/videos, no memes: Please include a text description when sharing images or videos. Post memes to !androidmemes@lemdro.id.

  4. No self-promotion spam: Active community members can post their apps if they answer any questions in the comments. Please do not post links to your own website, YouTube, blog content, or communities.

  5. No reposts or rehosted content: Share only the original source of an article, unless it's not available in English or requires logging in (like Twitter). Avoid reposting the same topic from other sources.

  6. No editorializing titles: You can add the author or website's name if helpful, but keep article titles unchanged.

  7. No piracy or unverified APKs: Do not share links or direct people to pirated content or unverified APKs, which may contain malicious code.

  8. No unauthorized polls, bots, or giveaways: Do not create polls, use bots, or organize giveaways without first contacting mods for approval.

  9. No offensive or low-effort content: Don't post offensive or unhelpful content. Keep it civil and friendly!

  10. No affiliate links: Posting affiliate links is not allowed.

Quick Links

Our Communities

Lemmy App List

Chat and More


founded 1 year ago
MODERATORS
 

Howdy, Android nerds!

A little while ago I wrote a simple power consumption benchmark for Android web browsers, called browser-power-hour. I've since used it to test Chrome against Firefox on two different devices, and I'm here to share the results!

Why is this useful? It's pretty common to see battery drain brought up as a reason to use (or avoid) certain web browsers, often without evidence. But browsers are complex and constantly evolving pieces of software... maybe those perceptions are out of date? Maybe they're still valid! Unlike raw performance, there are few, if any, good ways to reliably measure battery impact for an individual app, especially on Android, so it's hard to tell what's actually true. Hence, this project! My goal is to be able to provide objective metrics on browser power efficiency to demystify the battery impact question.

I wrote a blog post about the benchmark if you're interested in more detail about how it all works, but I suspect most are primarily curious about the results. Let's focus on that!

A few caveats to keep in mind

  • Most importantly: the actual consumption percentages mean very little on their own. A web browser's relative power consumption next to its competition is the only useful statistic this benchmark provides.
  • Adding onto the above: these results, and the benchmark as a whole, are NOT meant to be general-purpose device battery tests. Under the hood, the benchmark tests a static set of websites sequentially. Great for testing an individual app, not great for testing a device that will be subject to far more variable conditions.
  • The results for one device/SoC may not be relevant for other devices with wildly different system configurations.
  • Finally: I am far from a technical Android expert. It's possible there are far better ways to do what I'm doing, and it's possible there are significant improvements to be made to my benchmark. If you believe there are, the benchmark is open source, and I encourage you to contribute!

Let's get started!

I'm a Pixel guy, so I tested this on both my old 4a 5G (powered by Qualcomm's Snapdragon 765G) and my new Pixel 8 Pro (powered by Google's Tensor G3). As I mentioned up top, I chose to focus on Chrome and Firefox - lots of alternative Android web browsers are Chromium-based and (from additional tests I've run) appear to have similar speed and battery performance to stock Chrome, so there's no need to analyze more than just one Chromium-based browser for this initial comparison. Firefox, on the other hand, is Gecko-based, and might potentially perform meaningfully different!

We do know one big thing going into this: Firefox has traditionally lagged behind Chrome on speed benchmarks, so a lower benchmark score isn't surprising. What I'm hoping to see is that, despite the lower performance, Firefox is still competitive with Chrome on power efficiency.

Pixel 4a 5G

(Full results with screenshots here.)

Browser Power consumption Speedometer average
Chrome 4.00% 4.02
Firefox 4.22% 4.72

This is a little shocking - Firefox is outright competitive with Chrome! Firefox is on average ~17% faster in Speedometer benchmarks while maintaining similar power consumption. That's great news if you're on a 4a 5G or another device that runs the Snapdragon 765G - you can base your choice on the browser's feature set instead of performance. That said, the Pixel 4a 5G is out of support, and it's possible that this trend won't hold with newer devices.

Speaking of...

Pixel 8 Pro

(Full results with screenshots here.)

Browser Power consumption Speedometer average
Chrome 0.38% 8.14
Firefox 1.38% 8.43

This is also surprising! Firefox performs similarly to Chrome... while consuming 3.6x the power in active use. That's... pretty bad.

It's unclear on the surface why there's such a large discrepancy here, but (baseless speculation alert) my best guess would be that Firefox just isn't well optimized for Tensor G3, or Chrome is VERY well optimized. Either way, the end result for Pixel 8/Pro users is that Chromium-based browsers are the obviously better choice.

What about [insert device here]?

This is where I need your help! That's right, YOU!

I don't have a wide variety of phones to test on, just my two Pixels. Notably, that means I haven't tested a single flagship Qualcomm chip. But you might be able to! The benchmark is open source, and I've tried to make it as easy as possible to run it yourself. If you do run the benchmark, please share! I've created a Github discussion where people can post their results.

Thanks for reading!

you are viewing a single comment's thread
view the rest of the comments
[–] mbestavros@lemdro.id 2 points 4 months ago

I actually did manage to pass it along to Firefox's CTO as part of their recent Reddit AMA! They indicated they're investigating power consumption in general, so I hope my work is useful to them.