News for hackers. Stuff that matters.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by arnaudsm on Monday April 10, 2023 @01:46PM (#35515040)
Quick napkin math of the wasted power : Firefox has ~300e6 users, let's assume the bug wasted 5 extra watts 4 hours a day.

That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by pjmlp on Monday April 10, 2023 @01:58PM (#35515221)
If it isn't on the Sprint board it doesn't exist.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by dylan604 on Monday April 10, 2023 @02:27PM (#35515584)
You also have to assume that at least one Microsoft employee has Firefox installed. There's no bug if there's no users
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by sterlind on Monday April 10, 2023 @03:21PM (#35516243)
I work at MS, tried to use Firefox but couldn't because FF doesn't integrate with the Windows cert store. Crucially, this keeps Windows Hello (TPM auth) from working, which makes it useless for any internal websites. For a while I used a hand-compiled PKCS#12 plugin that bridged to the cert store, but that was extremely fragile and eventually I gave up.

I think this is probably a major blocker for many enterprise users, and wish Mozilla would have fixed it.

edit: it looks like they may have fixed this in the past couple years, though you might have to go poking around in about:config.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by reynoldsbd on Monday April 10, 2023 @03:36PM (#35516429)
Current MS employee here. For a time this was true, but FF recently added this integration. No about:config needed, there’s simply a checkbox under the FF security settings. Since this was added, I have gone back to using FF as my daily driver, and I haven’t really encountered any other friction.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by protastus on Monday April 10, 2023 @03:55PM (#35516669)
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by pixel16 on Monday April 10, 2023 @03:29PM (#35516354)
Microsoft now blocks non edge browsers with conditional access policies.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by anonymousiam on Monday April 10, 2023 @03:54PM (#35516641)
Firefox not integrating with the Windows cert store is actually a good thing in many use cases. The ability to have an alternate browser that's not integrated has saved my butt more than once.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by chillstreem on Monday April 10, 2023 @01:57PM (#35515197)
doesn't this bug only manifest itself if one is using microsoft defender as their only security solution, and not a 3rd party AV/IS? if so, then the number of Firefox users in this calculation is much lower.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by SketchySeaBeast on Monday April 10, 2023 @01:58PM (#35515218)
I don't know if that's the case. I'm a Firefox user but consider all the 3rd party apps nearly as much malware as the things they are trying to solve. I run strictly defender and try to make good choices when downloading and browsing.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by UberFly on Monday April 10, 2023 @02:42PM (#35515787)
I actually replace Defender with a 3rd party choice (Eset) for this very same reason - to wrestle some control over my OS from Microsoft. I find Defender to be overbearing in so many ways.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by chillstreem on Monday April 10, 2023 @02:01PM (#35515259)
well, if we're taking strictly subjective personal experiences as some sort of a relevant benchmark, then I'm a Windows Firefox user that has never used MS defender for any length of time, and always strictly a reliable low-impact 3rd party AV like ESET or Emsisoft. so I guess the two of us cancel each other out.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by SketchySeaBeast on Monday April 10, 2023 @02:10PM (#35515364)
So based upon rigorous analysis, approximately half of all Firefox users use the default choice, and half use a different AV.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by hgsgm on Monday April 10, 2023 @03:30PM (#35516364)
> strictly a reliable low-impact 3rd party AV

Sounds good

> like ESET

What?! ESET used to burn constant CPU when wifi disconnected.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by guestbest on Monday April 10, 2023 @02:47PM (#35515857)
I agree with this and try to practice myself. I download portablespps.com hoping they have a scanner and stick to the open source ones
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Neil44 on Monday April 10, 2023 @02:58PM (#35515992)
More complicated still, defender does not completely stop working when 3rd party AV is installed. Also maybe Firefox is not the only app triggering this bug?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by slowmovintarget on Monday April 10, 2023 @03:39PM (#35516452)
I run an antivirus suite and have attempted to turn Defender off several times. Windows Update keeps switching it back on.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by duxup on Monday April 10, 2023 @02:02PM (#35515268)
> the equivalent of an average coal power plant

Produces in an hour, four hours?

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by lordnacho on Monday April 10, 2023 @02:06PM (#35515321)
Continuous. We need one less coal plant to support the Firefox code after the bug fix.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by akomtu on Monday April 10, 2023 @02:42PM (#35515797)
Coal makes only 12% of the electricity, in the US at least. Natural gas makes 36% and oil makes 33%.

https://www.eia.gov/energyexplained/us-energy-facts/

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by flangola7 on Monday April 10, 2023 @03:15PM (#35516180)
What does that have to do with anything? "Coal plant" is being used as a unit of power here.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by akomtu on Monday April 10, 2023 @03:38PM (#35516438)
And a unit of pollution. I'm sure that one extra solar plant or hydro plant wouldn't draw as much attention.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by rimunroe on Monday April 10, 2023 @03:58PM (#35516700)
I'm pretty sure you're mistaking power for energy. Watts are units of power, which is the rate of change in energy (joules per second). Asking for how much power something produces in an hour is like asking how many miles per hour your car goes in an hour.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by ChuckNorris89 on Monday April 10, 2023 @01:58PM (#35515214)
You assume all Firefox users are on Windows (they're not) and that all Firefox users on Windows are affected (I and my SO were not).

Who knows what edge case triggered that bug to manifest but I for one haven't seen it in the wild in the years we've been using FF.

Probably difficult in such a large org to allocate dev resources to chase down and fix a bug few people were impacted by.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by callahad on Monday April 10, 2023 @02:37PM (#35515724)
Around 80% of Firefox users are on Windows, per https://data.firefox.com/dashboard/hardware

That same site also suggests that Firefox has around 200e6 monthly active users, the average user uses Firefox 3.5 days a week, and for 5.5 hours per day.

My math could be wrong, but taking the above into account, and arnaudsm's 5 W estimate, I come up with an upper bound of around 80 MW. Discount that further by whatever proportion of Windows users you assume were actually affected. Not a whole coal power planet, but nothing to sneeze at.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by warner25 on Monday April 10, 2023 @03:21PM (#35516241)
Wow, that's fascinating. It really speaks to the utter dominance of Windows over Linux more than anything else. Like even among Firefox users, as of last year, there were an order-of-magnitude more Windows 7 and 8 users than Linux 5.x users.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by jonas-w on Monday April 10, 2023 @05:41PM (#35517730)
Don't have any data to back this up, but I would think that the average linux user will instantly turn off firefox telemetry and won't show up on these graphs. It's one of the first things when I install firefox, disable ff telemetry, set privacy mode to strict and then install uBlock. Nevertheless Windows has a huge market share, even if no one turned off data collection, and the year of linux on desktop didn't happen.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Dalewyn on Monday April 10, 2023 @08:06PM (#35518989)
Similar numbers can be seen with Steam demographics: Linux is nothing compared to Windows 7, to this day.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by CyberDildonics on Monday April 10, 2023 @08:47PM (#35519267)
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by recursive on Monday April 10, 2023 @01:57PM (#35515204)
The units don't make sense. You might mean megawatt-hours?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by teraflop on Monday April 10, 2023 @02:02PM (#35515269)
No, it makes sense. The parent is talking about continuous power measured in megawatts, i.e. megawatt-hours per hour, or megawatt-days per day.

300 million users * 4 hours/day * 5 watts = an average continuous savings of 250 MW.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by recursive on Monday April 10, 2023 @02:04PM (#35515287)
Ok, I get it now. This does make sense.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by arnaudsm on Monday April 10, 2023 @02:02PM (#35515267)
No typo, I meant Watts. I averaged the 4 hours per day
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by hgomersall on Monday April 10, 2023 @02:01PM (#35515255)
It was not so well explained, but the GP does mean averaged over 24 hours, the power requirement is 250MW.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by xdavidliu on Monday April 10, 2023 @02:02PM (#35515272)
one way it could just be mW is if he/she meant “a coal power plant for the 5 years that the bug was active”
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by jonhohle on Monday April 10, 2023 @02:55PM (#35515951)
I love calculations like this and hope they are part of every engineer’s line of thinking. I originally came across this thinking in Andy Hertzfeld’s book - https://www.folklore.org/StoryView.py?story=Saving_Lives.txt

Performance is time, energy, heat. It’s one of the easiest features to get and there are lots of tools, research, and philosophies to help get it. Memory and storage are similar.

For anyone working on large scale apps that are on millions of devices, hundreds of thousands of servers, or even just some back office guy who has minutes less stress in his day, performance benefits the world. For programmers, it’s one of the easiest ways to Save the Planet™.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by sseagull on Monday April 10, 2023 @03:17PM (#35516207)
Don't forget the waste caused by people throwing away devices that are "too slow", and the resources required to build new computers/phones.

Somewhere I saw a rough figure about phones. Something like: if everyone was able to keep their phone one year longer, it would be the equivalent of 600,000 cars off the road or something. (Just looked it up - source is possibly the founder of iFixit).

But you know, development velocity or whatever.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by einpoklum on Monday April 10, 2023 @04:47PM (#35517198)
Actually, in the PC/laptop space, I believe this phenomenon has been waning somewhat over the past... oh, the better part of a decade.

This is a result of:

* Single-core performance no longer dramatically improving - almost plateauing

* The rate or extent of "bells and whistles" and other OS overhead being added - decreasing.

* Budget consumer CPUs having reached smooth desktop performance (with sufficient memory and and an SSD) already, even with multiple applications open.

.. and all of these had not been the case during the 1980s, 1990s and 2000s. Now, if your machine's hardware doesn't brake down - and you're just a plain desktop user - your motivation for throwing away your machine is quite limited.

---

Of course, this is not the case for smartphones, we're still on the roller-coaster there.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by genocidicbunny on Monday April 10, 2023 @07:41PM (#35518796)
I would say we're coming to that point with phones too. Phones have also largely reached the end of their breakneck big-annual-improvement phase; There's little annual improvement in performance, power consumption, form factor or feature set. Screen resolutions are plenty high for most users, similar for the cameras. Most people would also probably be quite happy with the version of Android or iOS they are using if it kept getting bugfixes and security updates.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by rurp on Monday April 10, 2023 @11:46PM (#35520554)
> Most people would also probably be quite happy with the version of Android or iOS they are using if it kept getting bugfixes and security updates.

Absolutely! Most non-tech folks would be delighted by this. Regular users generally don't care one bit about whatever fad style or trendy feature got added with the latest update, they are just annoyed that their buttons or icons got moved around.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by genocidicbunny on Tuesday April 11, 2023 @04:45AM (#35522491)
> Most non-tech folks would be delighted by this.

And many tech folks too. My phone is a tool, not a lifestyle. I don't need my tools constantly changing out from under me.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by CrimsonCape on Tuesday April 11, 2023 @12:01PM (#35527062)
Here's an anecdote.

I like to look at websites that offer "last season" outdoor gear at discounted prices. The major frustration is that the sizes are never my size of shoe/shirt/etc because the popular sizes are gone sooner than the odd sizes.

There is no "domain-specific" improvement (The "domain" in this case being "last season discount retailer.") to the basic shopping cart ecommerce experience that would give me a way to flag my interested product or product category so that I could be notified when the item is in-stock.

This basic feature would vastly improve my interaction with the websites and would probably result in higher sales.

In today's world, that's a huge ask to have that kind of feature implemented.

Heck, even asking for a good "syntaxable" search seems to be an impossible ask. Imagine being able to search "Category: Shoes; Brand: "North Face"; Price: >50&&<120"

The fact that this is never implemented yet billions of dollars are poured into ecommerce development kinda reflects how the industry is focused on improving the tooling/back end and not the design.

I see vastly more posts in this vein: "Nobody really knows how this complicated spaghetti-like system works"

than in this vein: "X tool allowed us to build a Maserati of our domain."

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by josephg on Monday April 10, 2023 @10:38PM (#35520080)
Yep. Most things most users do on our computers could be done just fine on a computer from 10 years ago. I think we're on a performance treadmill like this:

- Developers get new, fast devices (yay). We make our software just fast enough to run smoothly (enough) on our own devices. Then we ship it.

- Users' computers are slower than the developers' computers. Users experience is bad because the software is slow.

- Users buy new computers too. Money is poured into R&D for even faster computers.

- Hardware companies release faster hardware

- Developers buy new, fast computers

And the cycle continues.

For general purpose computing, there's not really any meaningful difference between my computer today and my computer 15 years ago. But I can't use that old computer, because modern programs don't work well on it any more. I can't imagine how slow modern Discord or Microsoft Teams would run on my old 2012 macbook air - even though that machine is orders of magnitude faster than the computer I was using to chat on IRC in the late 90s.

I'm low key convinced that if computers and phones stopped getting faster tomorrow, the software industry would grumble but get on with things and adapt. Users wouldn't really notice anything change, except we'd all be richer because we would no longer need to buy new computers every few years.

There's a few notable exceptions of course: modern AI, video production & animation, and massive cloud services (like Google and Netflix) who actually optimize their code. I'm on the fence about compilers - do LLVM & rustc really need to be that slow? Netflix might never make it to 8k video (boo hoo). And ray traced video games might not happen. But the average consumer would probably be delighted. And the savings to the environment would be insane.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by chlorion on Monday April 10, 2023 @11:46PM (#35520550)
This is interesting, but maybe our software is doing a lot more today than it was back then. I guess the question is whether those things are necessary. There is of course some software that is just slower because of negligence too.

I remember using a computer 20 years, and they would take multiple minutes to boot into something that was usable, and executing programs would take quite a few seconds because the HDD had to go searching for stuff the executable required.

My current desktop has a Samsung 970 NVME SSD, it boots up in like 20 seconds or something, and everything is extremely responsive as far as reading from the disk goes.

It's interesting that the one thing that hasn't been completely neutralized by the treadmill is SSDs!

Also the LLVM and Rustc thing is interesting. I imagine they are doing much more advanced optimizations than what compilers did 20 years ago so they probably have a good excuse, but I think these optimizations are also neutralized by the treadmill eventually.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by redeeman on Wednesday April 12, 2023 @08:18PM (#35549051)
chromium 111 source is 1.7GB compressed with xz(lzma). google has completely lost whatever minds they may have had, and included more code than one would imagine exists in the whole damn world.

it is an absolute abomination, and these words does not even remotely do justice to just how horrible it is

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by RodgerTheGreat on Monday April 10, 2023 @03:12PM (#35516131)
It can be a bit dangerous (especially to your employer) to continue that line of thinking, though. How many pieces of software do we collectively work on which would make the world a better place if they didn't exist at all?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by asoneth on Monday April 10, 2023 @04:24PM (#35516965)
Is that really a downside?

In some cases you convince your organization to shift focus onto more useful products, and that can be a really great feeling. In other cases (company is too large, management too committed) it helps you confront exactly who you're working for. Because if you're going to sell your soul, you should at least make sure you're getting a good price.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by i-use-nixos-btw on Monday April 10, 2023 @04:43PM (#35517164)
Meh. I feel like there needs to be an active movement to assess programs that have huge scale (>10m users) to identify unnecessary power usage - whether it be because of a bug, because of unused functionality that nonetheless takes resources, or intermediate steps that take unnecessary power.

Perhaps I’m getting into a bit of a niche here, but the rise of stringy formats for data transfer concerns me. There are many-stage pipelines on machines that agree on what a 64 bit integer is, yet each stage performs encoding and decoding of JSON twice (decoding upon receipt, encoding to pass it on to the right place, decoding the response, encoding it in another manner to reply to the original sender). Sounds like a minor concern, but the scale of this instinctively feels like it’d dwarf 250MW globally.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by hinkley on Monday April 10, 2023 @04:48PM (#35517216)
Oh no!

… anyway…

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by josephg on Monday April 10, 2023 @10:43PM (#35520111)
If your job and your conscience disagree, quit your job. You only get one life and we have so many options as engineers.

Why make the world worse for ourselves and our children when you have other options?

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by harshreality on Monday April 10, 2023 @03:14PM (#35516168)
How did the idea of avoiding premature optimization get misapplied to client-side apps where the entity writing the software is not the one paying for electricity, cooling, and people's time when the software takes much longer to run than it could? When did a lot of software devs stop caring?

Pardon me, I think there are some electron devs at my door asking for a word. They might have baseball bats.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by rocqua on Monday April 10, 2023 @03:40PM (#35516474)
Premature optimization should be avoided client side as well I imagine? It just seems like lots of development shops skip optimization altogether, even when it stops being Premature (when it matures?).

And it's not like those Shops suffer for it, so it isn't very surprising they continue.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by aranchelk on Monday April 10, 2023 @04:02PM (#35516746)
I use a 7 year old low-power laptop. Cooling, electricity usage, and performance of Electron apps are never an issue. Crashes, bugs, lost data, and bad usability still are. I’d rather have devs spend time on that stuff.

If Electron frees up organizational resources to do what’s actually important, I applaud devs for using it.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by harshreality on Wednesday April 12, 2023 @01:35AM (#35535421)
Not an issue for you, that you know of, because you have no equivalent software that's written in a more performant language (or at least critical portions of the codebase written in a more performant language). That's part of the problem; in most cases, software users don't know what life would be like with better software. They assume the performance they see is close to optimal, or at least that the devs made an effort to optimize. Users are willing to get used to whatever the software's performance is, in order to have access to the software's features. You can get used to almost anything, as suboptimal performance turns into background noise, but that doesn't mean you should. You get used to waiting 5 seconds for a piece of software to do something that you do on average once every hour or two, not realizing that those 5 seconds, 10 times a day, 365 days a year, cost you 5 hours every year.

Optimizing performance and fixing crashes/bugs/dataloss aren't mutually exclusive, either. Developers who care less about code quality than checking boxes for features requested by management or customers, will write code that's both suboptimal and buggy.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by aranchelk on Saturday April 15, 2023 @11:55AM (#35581786)
> Not an issue for you, that you know of, because you have no equivalent software that's written in a more performant language

How on earth would you know that? No, incorrect.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by zerkten on Monday April 10, 2023 @04:34PM (#35517077)
>> When did a lot of software devs stop caring?

I'm not sure the devs stopped caring as much as the powers at be. Software development has become more commoditized than we want to believe. Devs following an agile workflow with every intent of performing multiple rounds of optimization find that the product gets shipped as soon as it approximates the thing that had been conceived originally.

It doesn't look like an immediate failure, so the less that leadership takes from it is frequently that the level of maturity they shipped is safe. The cycle continues and eventually folks lower down succumb to this shipping pattern. The only things that get them to optimize is competition that successfully drive home their win was due to performance. This doesn't always lead to optimizations when you are an incumbent who can still close more feature gaps because those often result in higher sales and revenue.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by zerocrates on Monday April 10, 2023 @05:13PM (#35517473)
There's a similar calculation (in a slightly different context) in a good scene in the movie Margin Call, about all the miles and hours saved by one bridge: https://www.youtube.com/watch?v=m8Mc-38C88g
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by sdfghswe on Monday April 10, 2023 @03:05PM (#35516067)
> let's assume the bug wasted 5 extra watts 4 hours a day.

How did you come to this?

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by mrinterweb on Monday April 10, 2023 @03:17PM (#35516196)
Great question. Based on my use, it would be a lot more than 5 watts/day.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by schemescape on Monday April 10, 2023 @08:22PM (#35519120)
Yes, the trace comparison in the link (which the author says is for browsing YouTube in Firefox) shows average CPU usage is down from roughly 5% to roughly 4%. That’s a great improvement, but I’d like to know why we should assume that translates to 5 Watts.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by HPsquared on Monday April 10, 2023 @03:15PM (#35516181)
Would be interesting to see the energy usage of Windows Update computed in a similar way.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by cutler on Monday April 10, 2023 @03:17PM (#35516199)
Don't underestimate Microsoft Won’t Fix which helped IE dominate the browser market for over a decade.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by perfmode on Monday April 10, 2023 @03:21PM (#35516242)
user must be running windows
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by dist-epoch on Monday April 10, 2023 @03:22PM (#35516261)
> That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug.

Are you sure you want to invoke this logic? Because following it through imagine the energy savings if Firefox users switched to Chrome.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by LeoPanthera on Monday April 10, 2023 @03:38PM (#35516445)
> Are you sure you want to invoke this logic? Because following it through imagine the energy savings if Firefox users switched to Chrome.

Ironically, Mac users routinely complain about how power-hungry Chrome is on the Mac. Safari is significantly more efficient.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by ChuckNorris89 on Monday April 10, 2023 @03:52PM (#35516615)
>Safari is significantly more efficient.

Based on the increased laptop battery life I notice, so is using Edge on Windows.

It makes sense that both Apple and Microsoft can extract the best out of their OS + browser. There's no way Firefox can compete on such OS specific optimizations.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by 908B64B197 on Monday April 10, 2023 @07:40PM (#35518791)
> so is using Edge on Windows.

The new Edge based on Chromium performs better than Chrome with regards to power consumptions.

The old Edge was even better in terms of power consumption. Like a few extra hours of battery life.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by gorby91 on Monday April 10, 2023 @09:52PM (#35519724)
To continue to overextend the analogy though, that's asking people to use Edge over Chrome or Firefox is like trying to market the Smart Car. Few people want to be seen driving it, fuel efficiency be damned.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by BizarroLand on Tuesday April 11, 2023 @07:05PM (#35532909)
And no browser is more efficient that simply turning off your computer and reading by daylight.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Karunamon on Monday April 10, 2023 @04:40PM (#35517138)
* * *
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by dijit on Monday April 10, 2023 @05:06PM (#35517411)
Its been a really long time but safari on Windows was a thing and it did run a lot leaner in the background than anything else available at the time (except Opera if memory serves).

It’s entirely possible that Safari is intentionally avoiding features that make it wake up-

I doubt that it does anything unavailable to other browsers, thats MS territory, because they wanted features. I feel like safari, by contrast, doesn't want to add features.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by LeoPanthera on Monday April 10, 2023 @05:56PM (#35517870)
It's not impossible, but I doubt it, if only because very few third party applications use as much as Chrome does. The only exceptions are things that actively use a lot of CPU, like compilers or compressors.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by jeron on Monday April 10, 2023 @06:28PM (#35518152)
Blessed or not, I still end up using Safari. The improvement in battery life is too significant to ignore
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by gnicholas on Monday April 10, 2023 @11:27PM (#35520413)
Have you compared versus Orion, which is also based on WebKit (and can run most Chrome and Firefox extensions)?

IME, Safari is no better than Brave in terms of battery, even when I’ve got hundreds of tabs open.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by drdrey on Monday April 10, 2023 @06:32PM (#35518187)
That's because optimizing for battery life is a stated goal of the Safari team, it's actively benchmarked
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by ojosilva on Monday April 10, 2023 @06:50PM (#35518344)
Totally guesswork here, but I'd say Chrome has a lot more telemetry, profiling and tracking built-in and its users tend to use a lot more plugins, including things like ad-blockers that scan over each webpage and can be beneficial (battery-wise) or not depending on content. Safari users are more of a barefoot type. A power user is more likely to not be running Safari. And a power user may, well, prefer to sacrifice battery power to get the power they seek.

Besides, there's some precedent set in 1998 by a certain OS that "favored" their embedded browser over the competition, so I doubt Apple would want to tickle that fancy.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tshaddox on Monday April 10, 2023 @08:53PM (#35519303)
I would be at least slightly surprised if Apple would deliberately hold back power-saving techniques from third party developers. It’s not like this is something that makes Safari much more appealing to users. Most users wouldn’t even notice that their choice to use Safari is responsible for their great battery life.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by scarface74 on Monday April 10, 2023 @09:24PM (#35519519)
Third party developers are free to go here and see what Apple is doing:

https://github.com/WebKit/WebKit

> Most users wouldn’t even notice that their choice to use Safari is responsible for their great battery life.

Seeing that MacOS has called out which apps are using the most energy for years, users can definitely tell which apps are using the most battery life.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by saagarjha on Monday April 10, 2023 @10:20PM (#35519945)
Apple can and does leave things out of that repo.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by scarface74 on Monday April 10, 2023 @11:23PM (#35520378)
So you think there is a conspiracy by Apple to not allow third parties to be battery efficient and make there hardware look bad?

But you are free to download the source code, compile and run it yourself to see if it is less battery efficient than the official builds.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by saagarjha on Tuesday April 11, 2023 @12:01AM (#35520661)
I did not say that.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Karunamon on Friday April 14, 2023 @07:55AM (#35568440)
I absolutely think there is a conspiracy (inasmuch as "conspiracy" can be defined as "not going out of their way to change it") to make the competitors to Apple applications look worse than their own offerings. It does not reflect poorly on Apple when Firefox performs worse and uses more memory and battery than Safari.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by scarface74 on Friday April 14, 2023 @10:48AM (#35570164)
How is Apple suppose to change Firefox and Chrome’s source code?

If either browser’s manufacturer wants to see what Apple does to make Safari more battery efficient, they are free to look at the source code to WebKit.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Karunamon on Saturday April 15, 2023 @11:05AM (#35581263)
And as the other person told you already, Safari.app is not what you get if you build the WebKit source. In much the same way that you can't judge Chrome by Chromium, one is the base of the other, not the whole.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by scarface74 on Monday April 10, 2023 @09:20PM (#35519492)
If only the underlying engine were open source so people could see what “secret APIs” (sic) it was using…
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by saagarjha on Monday April 10, 2023 @10:20PM (#35519951)
It’s mostly that they care. Chrome is designed with the mindset that it’s the most important thing running on your computer.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by HWR_14 on Monday April 10, 2023 @10:48PM (#35520136)
If I had to guess, it's that Apple refuses to implement very CPU-heavy JS features they don't think add much value in Safari.

I recall some feature I was using that ran in an inferior way to save power on Safari, so much so that I had to kill that feature and use a different API

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by TheKarateKid on Tuesday April 11, 2023 @11:38AM (#35526656)
I think it's more that Apple implements power saving behavior into the JS engine on desktop much like they do on mobile. For example, pausing background scripts on inactive tabs and disallowing autoplay on videos even on desktop.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by gnicholas on Monday April 10, 2023 @11:23PM (#35520382)
I’ve not noticed a difference between safari and brave, so I’d say the former is not blessed.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by TheKarateKid on Tuesday April 11, 2023 @11:34AM (#35526601)
It's because of the quality of Chrome. Google's focus is on features and security, with efficiency secondary. Safari's primary focus is efficiency.

Google's only incentive to make Chrome more efficient is when they start receiving heat (no pun intended) about bad performance.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by funcDropShadow on Wednesday April 12, 2023 @03:36AM (#35536196)
Googles focus is to collect as much data about the user as possible, nothing else.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by axolotlgod on Monday April 10, 2023 @03:29PM (#35516353)
Does Chrome really use significantly less resources than Firefox? Are there numbers there?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by IntelMiner on Monday April 10, 2023 @03:32PM (#35516377)
It took a lot longer for Firefox to get GPU accelerated video playback on Linux iirc

Perhaps a "niche" use case for some, but there's a lot more Firefox users on Linux in particular

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tristan957 on Tuesday April 11, 2023 @11:32AM (#35526560)
Isn't Chromium hardware acceleration currently broken on Linux?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by haupt on Monday April 10, 2023 @05:36PM (#35517700)
According to Tom's Guide[1] Microsoft Edge beats out both when it comes to RAM utilization but Chrome just edges out Firefox when loading >10 tabs. That was in 2021. I'd be interested to see any other comparisons or benchmarks.

1. https://www.tomsguide.com/news/chrome-firefox-edge-ram-compa...

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by prmoustache on Monday April 10, 2023 @06:04PM (#35517951)
This is with no extensions installed right?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by ChuckNorris89 on Monday April 10, 2023 @03:38PM (#35516450)
Or the energy used by all the electron apps on all operation systems.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by airza on Monday April 10, 2023 @03:43PM (#35516508)
There are good reasons to not use chrome over firefox, but few reasons to leave firefox bugged. I don’t think the same utilitarian logic applies.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by throwbadubadu on Monday April 10, 2023 @04:54PM (#35517273)
Yeah, finally as the market share is where it should be for Firefox Microsoft had no more reasons to leave it on :D
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by omneity on Monday April 10, 2023 @03:44PM (#35516516)
It's not too bad an analogy. Think of it this way:

- Switching from Firefox to Chrome might be similar to switching between two car models, one consuming less energy than the other.

- Fixing this bug is more like going to a car workshop to fix an injector issue in your car that was causing higher fuel consumption and more pollutants.

The first one is really a matter of tradeoffs and personal choices. The second one is less of a choice and more of an actual issue that was left due to negligence. Hardly similar.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by sgtnoodle on Monday April 10, 2023 @04:51PM (#35517244)
Isn't it more like an auto maker issuing a recall to fix an injector issue in all their cars?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by omneity on Monday April 10, 2023 @05:02PM (#35517380)
An analogy can only get you so far, but in this case the bug is caused by Microsoft Defender, yet Firefox, the car manufacturer, is a different entity. So I wouldn't call it a recall.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by sgtnoodle on Monday April 10, 2023 @05:08PM (#35517431)
A bunch of cars across many manufacturers were recalled in the 2010's due to a defect in the airbags made by the same manufacturer.

One could also argue that the OS is the car, the browser is the chauffeur, and the user is the passenger.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by jmspring on Monday April 10, 2023 @08:52PM (#35519294)
With regard to browsers, I think we need more manufacturers, not just the GM (Google/Chrome) of browsers. I want Ford in there as well. (Sticking with US automotive companies).
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by robotresearcher on Monday April 10, 2023 @10:23PM (#35519978)
The article is about Firefox. It’s right there.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by deafpolygon on Tuesday April 11, 2023 @12:05AM (#35520689)
What's wrong with Chrysler?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by wolrah on Monday April 10, 2023 @09:52PM (#35519732)
> but in this case the bug is caused by Microsoft Defender, yet Firefox, the car manufacturer, is a different entity.

Quoting the Mozilla engineer responsible for most of the recent activity on the bug:

"This problem has two sides: Microsoft was doing a lot of useless computations upon each event; and we are generating a lot of events. The combination is explosive. Now that Microsoft has done their part of the job, we need to reduce our dependency to VirtualProtect."

It was also noted elsewhere in the thread that similar, though less severe, CPU impact is seen with other antivirus products.

Microsoft was doing something wrong that made this operation more expensive than it needed to be, but Mozilla is also doing this far more than any other browser.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by lotsofpulp on Monday April 10, 2023 @03:53PM (#35516632)
The cause and effect exists whether or not some commenter on HN writes about it.

The reason it is not “invoked” is because energy prices are sufficiently low (due to not pricing in externalities) that there exists little incentive for end users to optimize for power usage.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by gruez on Monday April 10, 2023 @04:39PM (#35517118)
>The reason it is not “invoked” is because energy prices are sufficiently low (due to not pricing in externalities) that there exists little incentive for end users to optimize for power usage.

You're right in principle, but in practice even factoring in externalities electricity prices won't be high enough for people to care. Using current US carbon intensity for electricity generation[1] and the higher end estimates for the social cost of carbon[2] gets us carbon costs of $0.142 per kWh. The average prices in US is $0.168. Adding in carbon costs would almost double the price, but there are countries with even higher electricity prices[4] and they're not exactly switching to more efficient software in droves to save energy.

[1] https://emissionsindex.org/

[2] https://en.wikipedia.org/wiki/Social_cost_of_carbon#Carbon_p...

[3] https://www.bls.gov/regions/midwest/data/averageenergyprices...

[4] https://www.statista.com/statistics/263492/electricity-price...

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by robotresearcher on Monday April 10, 2023 @10:29PM (#35520018)
Battery powered devices have battery life as the dominant user-sensible cost rather than the price of electricity.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by lkbm on Monday April 10, 2023 @04:11PM (#35516838)
I mean, sure, I could also just turn off my computer. Presumably people use Firefox for a reason, and making that a option use less energy is pure upside, and it's very interesting to see how big of an upside it might be.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by volkk on Monday April 10, 2023 @04:22PM (#35516937)
> Because following it through imagine the energy savings if Firefox users switched to Chrome

i've read everywhere that Firefox at this point is far more energy efficient than Chrome...is that not true?

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Georgelemental on Monday April 10, 2023 @04:33PM (#35517059)
If one user switches to Chrome, the energy savings are only for that one user. If one Microsoft engineer fixes a bug, the energy savings are for the many thousands who use Firefox on up-to-date Windows.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by kramerger on Monday April 10, 2023 @04:41PM (#35517144)
> imagine the energy savings if Firefox users switched to Chrome.

Nah, I like my privacy. How about replacing Electron apps with native apps instead?

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by ouid on Monday April 10, 2023 @04:44PM (#35517171)
Using firefox without memory errors is a pareto optimization over using firefox with memory errors.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tgv on Monday April 10, 2023 @05:00PM (#35517356)
Think more like this: this bug cost an average coal power plant, all other things being equal. I doubt it's that much, but it certainly did waste a lot of energy.

> imagine the energy savings if Firefox users switched to Chrome.

Imagine the privacy savings if Chrome users switched to Firefox.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by shapefrog on Monday April 10, 2023 @05:07PM (#35517419)
> imagine the energy savings if Firefox users switched to Chrome

This is why I left firefox.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tyingq on Monday April 10, 2023 @05:08PM (#35517430)
Maybe compare manifest v2 friendly Firefox with uBlock Origin vs eventual Chrome without it :)
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by revolvingocelot on Monday April 10, 2023 @05:17PM (#35517506)
Serious savings indeed when the Javascript cryptominer some ad network blithely serves up is ad-blocker'd, but we prefer synthetic benchmarks.

In seriousness, though, this is an issue. Elsewhere, I observe arguments about eg userbenchmark rankings, and the comparative relevance of single-core vs multicore performance. Are you playing a game, or rendering video 24/7 -- or running some entirely synthetic workload that allows for a peak performance the real world would never achieve? Same kinda problem.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by rahmeero on Monday April 10, 2023 @07:41PM (#35518798)
Not sure if this is related, but Chrome on my Macbook regularly gets to a state where one process (a tab?) is consuming 4 Gb RAM and 20%+ CPU. This happens on both M1 and Intel CPUs, on multiple releases of OS.

Situation seems to happen some time after visiting ad-heavy sites (yeah I know I should install an ad-blocker). Have others noticed this? Seems to be Chrome. I also use Firefox and occasionally Safari but have not noticed that with those browsers.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by saagarjha on Monday April 10, 2023 @10:22PM (#35519970)
Web browser benchmarks are typically designed to track real-world applications
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by xxs on Monday April 10, 2023 @05:13PM (#35517474)
>Firefox users switched to Chrome.

Far worse due to privacy/adblock addons.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by wiseowise on Monday April 10, 2023 @05:14PM (#35517482)
> Because following it through imagine the energy savings if Firefox users switched to Chrome.

Enlighten us.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by harry8 on Monday April 10, 2023 @05:40PM (#35517726)
Imagine the power savings if chrome users switched to lynx.

Imagine the power savings if everyone used pihole, ublock etc.

Second uses more power than the first and is better. Do it!

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by hanoz on Monday April 10, 2023 @06:37PM (#35518236)
> imagine the energy savings if Firefox users switched to Chrome.

Imagine the energy squandered on all the extra goods and services bought by users using a browser owned by an advertising company, instead of Firefox.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by everdrive on Monday April 10, 2023 @07:58PM (#35518936)
Now do one for javascript.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by mr_toad on Monday April 10, 2023 @08:10PM (#35519026)
> Are you sure you want to invoke this logic? Because following it through imagine the energy savings if Firefox users switched to Chrome.

And then imagine Safari on an M1.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by viraptor on Monday April 10, 2023 @09:54PM (#35519742)
It works for a single case, but not sure about long term. We still have at least a little bit of competition. All browsers improve because the other ones improve. If we all switched to Chrome or Safari because of the power saving, we'd just get another version of IE monopoly/stagnation which could result in more power wasted longterm.

The optimum is likely somewhere where most people use the currently most efficient solution and others keep alternatives alive and competitive.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by midoridensha on Monday April 10, 2023 @10:25PM (#35519994)
Imagine the energy savings if all users installed a good ad-blocker.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by michaelcampbell on Tuesday April 11, 2023 @07:44AM (#35523720)
How many megawatts saved if everyone learned how to do all their work on text-only consoles running linux?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by rhaway84773 on Wednesday April 12, 2023 @05:25AM (#35536979)
Those are 2 very different things.

In switching browsers, you get different features, workflows and functionality, many of which you prefer on Firefox, which is why you’re using it.

With this bug fix, there is absolutely no loss or change in functionality (other than increased battery life), and yet you’re getting the benefits.

This bug is pure waste.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by marricks on Monday April 10, 2023 @04:24PM (#35516955)
> Because some Microsoft engineer missed a bug

That might be a bit too kind given how much Google liked to Oops Firefox. Wouldn't be surprised if MS did too.

Oops:

https://www.computerworld.com/article/3389882/former-mozilla...

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by zerkten on Monday April 10, 2023 @04:27PM (#35516992)
This is just one bug in the world affecting power usage with Firefox. There are loads more like https://bugzilla.mozilla.org/show_bug.cgi?id=1404042 which caused me to abandon it on macOS as my primary browser.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by chlorion on Monday April 10, 2023 @05:47PM (#35517794)
Gaming on a mid-tier modern GPU probably uses around 50-100w, the Steam stats probably have a number of users to multiply with. I'm sure it's a massive amount of power.

I don't like video games and they are not-necessary so I propose that we ban them globally, or only allow gaming if using renewable energy. If you don't live in a place where this is an option, too bad!

Maybe instead of this we require all games to be limited in graphical effect (imagine early source games or something). We could save a lot of power globally if we enforced this.

This is why I strongly dislike this line of thinking. I don't think power plants work that way anyways, they probably make a constant-ish amount of power rather than taking exactly 50w worth of fuel every time someone opens up Call Of Duty.

There are also much lower hanging fruit to get upset about if you care about the planet, like cars with large motors or people with heated drive ways (yes thats a thing).

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by ericye16 on Monday April 10, 2023 @05:57PM (#35517885)
This is a bad comparison, gaming presumably brings utility to someone whereas this was a pure bug with no upside.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by chlorion on Monday April 10, 2023 @11:29PM (#35520426)
The bug was an accident though, not something intentional!

My intention was to compare the listed things against MicroSoft engineers making mistakes while programming Windows Defender (the quote below), or programmers writing bugs in general.

>Because some Microsoft engineer missed a bug.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by kortilla on Monday April 10, 2023 @06:00PM (#35517910)
People get entertainment out of games. They got nothing out of this wasted cpu.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by cassepipe on Monday April 10, 2023 @07:26PM (#35518666)
Now I will have to spend the rest of my life to try to forget that heated driveways are a thing and pretend everything is going to be fine
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by vinyl7 on Monday April 10, 2023 @07:45PM (#35518828)
I have been hoping for many years that global warming would force devs to go back to a time of creating fast and efficient software in order to help the environment.

Unfortunately devs dont realize how needlessly power hungry software is when they don't need to be. But hey, its easier to use electron and javascript than it is to save the planet.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tinglymintyfrsh on Monday April 10, 2023 @08:56PM (#35519322)
It's 5.5 MW.

That's not how power or energy works.

5 [W*hr/day] (Kept in energy units per interval rather than average power).

200e6 users/day who surf for maybe 4 hours/day

5 * 200e6 * 4 / 24 = 133 [MW*hr/day] (133/24 = 5.5 MW)

A typical US home uses 11 [MW*hr/y] or 0.36 [MW*hr/day].

(Convert to power draw, that's 0.015 MW.)

mean consumption of roughly 400 US homes (133 / 0.36).

The smallest US grid-tied operational nuclear power plant produces 600 MW. 133 MW very small coal power plant would 400 MW.

https://data.firefox.com/dashboard/user-activity

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by sesqu on Saturday April 15, 2023 @08:51AM (#35580189)
Your math is wrong.

  5W/user * 200e6 user * 4h/24h = 167 MW
  11 MWh/a/home = 0.00125 MW/home
  167 MW / (0.00125 MW/home) = 133 000 home
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by docmars on Monday April 10, 2023 @09:40PM (#35519680)
While this feels significant, I don't think humanity is doing itself any favors by guilting itself over problems it didn't (or couldn't) anticipate. Hindsight is always 20/20. This is especially true when "don't over-optimize" is a core tenant in software development. Software would never ship in a reasonable timeframe if we scrutinized every release to this degree during development.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by taeric on Monday April 10, 2023 @10:50PM (#35520154)
Only works if this was a constant drain for everyone, though? If it only saves 100 watts once a month, from a quarter of users, things change. A lot.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tgsovlerkhgsel on Monday April 10, 2023 @11:57PM (#35520628)
Takeaway: If you're working for a tech company with billions of users, your personal CO2 footprint is completely irrelevant. Rather than agonizing over flights vs. trains, beef vs. pork vs. vegan alternatives, heating etc. - find some small thing that you have access to and that you can optimize.

That's about 2.2 TWh per year. A decent estimate for average worldwide CO2 intensity of electricity is 400 gCO2e/kWh (that's 400 tons per GWh). A typical personal footprint including some international flights will be in the tens of tons.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by MyelinatedT on Thursday April 13, 2023 @08:01PM (#35563835)
It's worth considering that not all Wh are equal in environmental impact. In the case of many (most?) big tech firms, a large proportion of their energy consumption is sourced from renewable sources.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by b3lvedere on Tuesday April 11, 2023 @09:13AM (#35524646)
Imagine what could have been saved if you stop loading ads in your browser.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by drumttocs8 on Friday April 14, 2023 @11:41PM (#35577437)
How are you calculating 5W? And subsequently 20Wh?