Skip to content

Understanding power measurement better #4569

@Jones-S

Description

@Jones-S

Your question

Hi
I am currently trying to get a more or less accurate power consumption value from browsertime.
Following this example: #3944 (comment)
I get the initial info in my terminal:
INFO: CPU / Power usage: 7334 which I guess is in µWh.

If I open the browsertime.json I see this:
"powerConsumption":[0.003353606209]
and "powerConsumption":{"median":0.0034, ...

Now the numbers are pretty close to each other. But what is the difference? I also had the case that they differed quite a bit.
The first [0].info.powerConsumption and the second is [0].info.statistics.powerConsumption.

Also I don't understand the key cpu which is the number from before 7334.
So is this just the Power used by the CPU? What about GPU for example?
Is GPU taken into account in one of the powerConsumption keys?

If I then open the saved profile (attached) I see in the parent process → process power: 2.1mWh in the full range.
How is that value linked to the powerConsumption in the browsertime summary?

In the process github.com itself I see 967 µWh for the full range.

I also wonder: Which number would go up if I had power intensive tasks running in the background on my machine?
Would all be affected?

Maybe somebody could help me out to understand which of the values would be most accurate number to measure if I want to find out about the power consumption of one page.

🙏

Image

geckoProfile-1.json.gz

browsertime.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions