Since I have more time during the summer, I have finally decided to do Firefox web browser power consumption comparison on various platforms. The goal was to compare power consumption in typical real world "browsing" scenarios.
Test description
I have created simple test script using iMacros Firefox addon to automatize browsing in 3 tabs, the following scenarios were implemented:
- Youtube.com videos playback + scrolling Youtube page.
- Novinky.cz articles reading (simulated by scrolling the page).
- Google.com searching (search term typing simulation, scrolling the page, opening the result).
- Active idle state with running Firefox with about:blank page.
- Scenario 1 with HTML5 Youtube videos playback and scenarios 2 and 3 in parallel.
- Scenario 1 with Flash Youfube videos playback and scenarios 2 and 3 in parallel.
Tests run on HP Proliant DL360 G6 with default BIOS settings / no tunings. For measurements, I used Chroma 66202 the ENERGY STAR/IEC 62301 compliant power meter. The total energy consumed on AC side was monitored. As data logger / power meter controller another machine was used not to influence the machine under test.
Software
Latest available kernels and SW builds as available during the test day were used. I've used binary versions of Firefox from Mozilla website, except RHEL5, where Firefox had to be compiled (Firefox 5.0 binary version does not support RHEL5). Firefox version 5 and latest Flash (Beta 2 11.0.d1.98) was used.
System | Kernel / SW build |
Fedora 15 | 2.6.38.8-35 |
RHEL5 | 2.6.18-274 |
RHEL6 | 2.6.32-174 |
Windows 7 | 6.1.7601 |
Windows Server 2008 R2 | 6.1.7601 |
Idle state
For this test, Firefox has been running with about:blank for 30 minutes.
System | Pavg [W] | Eavg [Wh] |
Fedora 15 | 55.9613 | 27.9744 |
RHEL5 | 62.1721 | 31.0791 |
RHEL6 | 56.0810 | 28.0343 |
Windows 7 | 59.5583 | 29.7725 |
Windows Server 2008 R2 | 59.02850 | 29.5077 |
From Table 2 you can see that all Linux distributions except RHEL5 has more or less the same power consumption on our testing platform. Increased power consumption in RHEL5 is probably mostly caused by older kernel (e.g. no tickless kernel). Windows in idle state needs more energy than Linux systems on our testing platform.
iMacros script with HTML5 Youtube videos
For this test, iMacros test was used as described above and Youtube was configured to use HTML5 video playback. RHEL5 couldn't participate in this test, because of insufficient dependencies.
System | Pavg [W] | Eavg [Wh] |
---|---|---|
Fedora 15 | 65.6824 | 32.8338 |
RHEL6 | 65.9127 | 32.9490 |
Windows Server 2008 R2 | 65.1743 | 32.5799 |
Windows 7 | 65.8146 | 32.9000 |
There are no big differences in power consumption between measured systems on our testing platform. Interesting fact is that Windows systems had the same power consumption as Linux based ones although Windows systems needed more power in idle state.
iMacros script with Flash Youtube videos
This test is the same as previous one, but Firefox flash plugin was activated and Youtube was configured to use Flash for videos playback. This also activates Flash adverts on other pages.
System | Pavg [W] | Eavg [Wh] |
---|---|---|
Fedora 15 | 68.9575 | 34.4711 |
RHEL5 | 71.6805 | 35.8323 |
RHEL6 | 70.4540 | 35.2192 |
Windows Server 2008 R2 | 65.8582 | 32.9218 |
Windows 7 | 68.2460 | 34.1154 |
Surprise here was Windows 2008 R2 Server in comparison with Windows 7. Power consumption on Windows 2008 R2 Server with Flash was almost the same as with HTML5.
Flash power consumption
This table shows difference between Table 4 and Table 3 which demonstrates saved energy when not using Flash.
System | Pavg [W] | Eavg [Wh] |
---|---|---|
Fedora 15 | 3.2751 | 1.6373 |
RHEL6 | 4.5413 | 2.2702 |
Windows Server 2008 R2 | 0.6839 | 0.3419 |
Windows 7 | 2.4314 | 1.2154 |
Conclusion
Windows has bigger power consumption in idle state than Linux based systems on our testing platform. There are no big differences between Windows and Linux when browsing web without Flash, but Windows needs less energy when Flash is used. If you need Flash only for services which supports also HTML5, you should definitely use HTML5 to save energy.
Good one!
OdpovědětVymazatCould you please post iMacros scripts somewhere and provide a link?
OdpovědětVymazatNow that there's a stable 64-bit flash, and there's no more need for a 32-bit plugin wrapper, could you repeat Test 3? I think firefox's plugin-container has lower overhead than nspluginwrapper, I wonder if that will make a noticeable difference in power consumption?
OdpovědětVymazatAnecdotally I've noticed the difference in performance - fullscreen 'hd' youtube and iplayer video no longer stutters on a 3GHz athlon II x3. Flash CPU usage is still fairly high, it just doesn't saturate a single core anymore.
I was using beta version of 64-bit Flash, so nspluginwrapper wasn't used. I plan to do this test for every Fedora release, so I will use the latest Flash in upcoming F16 test.
OdpovědětVymazatAh, OK.
OdpovědětVymazatAlso, are you on Planet Fedora? I can't find you in the blogroll.
Oliver, I will add it.
OdpovědětVymazatVrata, this is iMacros script I have used: http://jkaluza.fedorapeople.org/test.iim.
OdpovědětVymazat