Closed Bug 984506 Opened 10 years ago Closed 3 years ago

High power consumption on Sohu

Categories

(Core :: Performance, defect)

x86
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rvitillo, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [Power:P1])

Idling on the sohu homepage consumes significantly more energy than on IE and Chrome.

Reducing the website to a small testcase is challenging. The dynamic elements by themselves don't seem to justify the differences seen between the browsers.
Whiteboard: [Power]
I took some measurements of www.sohu.com with |mach power|. The 30 second
sample measurement took place *after* a Flash ad for JD.com popped up and then
disappeared. (On Safari I had to click on the ad to make it run, due to the
flash click-to-play feature.)

Firefox trunk build:

>     total W = _pkg_ (cores + _gpu_ + other) + _ram_ W
> #01 29.57 W = 26.51 (10.44 +  4.75 + 11.33) +  3.06 W
> 
> 1 sample taken over a period of 30.000 seconds
> 
> Name                               ID     CPU ms/s  User%  Deadlines (<2 ms, 2-5 ms)  Wakeups (Intr, Pkg idle)  GPU ms/s
> com.apple.Terminal                 109    1456.31                                     292.42  106.93            222.37
>   plugin-container                 4779   832.78    91.32  18.19   1.60               178.59  82.66             79.86
>   firefox                          4770   149.50    69.74  5.73    5.23               86.63   19.72             142.49
>   plugin-container                 4771   515.11    93.75  4.13    6.86               26.69   4.43              0.00
>   Terminal                         208    6.42      90.74  0.00    0.00               0.43    0.07              0.00

Safari:

>     total W = _pkg_ (cores + _gpu_ + other) + _ram_ W
> #01  8.41 W =  6.85 ( 1.68 +  0.31 +  4.86) +  1.56 W
> 
> 1 sample taken over a period of 30.000 seconds
> 
> Name                               ID     CPU ms/s  User%  Deadlines (<2 ms, 2-5 ms)  Wakeups (Intr, Pkg idle)  GPU ms/s
> com.apple.WebKit.Plugin.64         326    485.19                                      237.51  157.18            18.10
>   com.apple.WebKit.Plugin.64       4815   488.37    90.65  4.90    5.53               237.32  157.18            18.10
> com.apple.Safari                   323    86.52                                       50.15   33.62             15.53
>   com.apple.WebKit.WebContent      4813   88.93     85.29  0.00    0.00               49.48   33.36             15.53
>   com.apple.WebKit.Networking      4804   0.84      53.94  0.00    0.00               0.50    0.27              0.00
>   Safari                           4802   0.11      57.99  0.00    0.00               0.17    0.00              0.00
> com.apple.Terminal                 109    5.47                                        0.57    0.30              0.00
>   Terminal                         208    5.31      94.17  0.00    0.00               0.50    0.23              0.00

Chrome:

>     total W = _pkg_ (cores + _gpu_ + other) + _ram_ W
> #01  7.31 W =  5.52 ( 0.58 +  0.05 +  4.90) +  1.80 W
> 
> 1 sample taken over a period of 30.000 seconds
> 
> Name                               ID     CPU ms/s  User%  Deadlines (<2 ms, 2-5 ms)  Wakeups (Intr, Pkg idle)  GPU ms/s
> com.google.Chrome                  327    254.22                                      188.20  147.82            0.50
>   Google Chrome Helper             4850   178.25    92.83  0.00    0.00               65.78   58.68             0.00
>   Google Chrome Helper             4851   70.53     77.89  0.00    0.00               113.16  82.74             0.00
>   Google Chrome                    4840   5.92      71.35  0.07    0.13               8.93    6.10              0.00
>   Google Chrome Helper             4844   1.08      22.75  0.00    0.00               0.37    0.30              0.50
> com.apple.Terminal                 109    5.73                                        0.50    0.27              0.00
>   Terminal                         208    5.56      91.79  0.00    0.00               0.43    0.27              0.00

Firefox is clearly the worst, particularly due to high CPU usage.
Power:P1 because Alexa says Sohu is the #42 site in the whole world, and #8 in China.
Whiteboard: [Power] → [Power:P1]
Depends on: 1211565

I tested again with a recent Nightly and it uses around 10% CPU load these days. I assume a lot has been improved over the last 6 years, and the site has probably also been changed. As such I wonder if we should just close the bug.

Component: General → Performance
Product: Firefox → Core
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.