M1 Pro 上各浏览器 B 站视频功耗最高差 3 倍,背后原因令人暖心

2021-12-08 13:02:51 +08:00
 ruib

硬件: M1 Pro 10C14G 32GB

系统: Monterey 12.1 Beta4

测试视频: https://www.bilibili.com/video/BV1TA411J7CK

播放设置:4K ,弹幕,全屏播放

(单位均为 mW) Edge 96.0 Firefox 95.0 Safari 15.2
E-Cluster 128 90 167
P0-Cluster 2717 1729 238
P1-Cluster 644 270 26
DRAM 1328 1384 1133
GPU 227 868 170
Package Power 7470 6842 2914

一些说明:

  1. B 站的 CPU 负载明显比其他视频网站高出一截,所以拿它来对比
  2. Firefox 刚更新到 95 ,号称针对 MacOS 性能有较大更新,包括“We've also reduced the power usage of software decoded video on macOS, especially in fullscreen. This includes streaming sites such as Netflix and Amazon Prime Video.”
  3. B 站默认优先 HEVC ,但只有 Safari 支持,另外两个是 AVC1 。手动禁用 HEVC 后,Safari 的功耗也只上升到 3.4W 左右
  4. 从结果看,只有 Safari 用上了硬件 codec ,P 核基本处于待机状态。其他浏览器都需要调用 P 核来软解,其中 Firefox 似乎把一部分负载丢给了 GPU 。
  5. 如果减去差别不大的 DRAM ,Safari 功耗只有 1.8W ,Edge 功耗 6.1W ,差了超过三倍

TLDR: 不插电看 B 站还是 Safari 吧

11089 次点击
所在节点    MacBook Pro
46 条回复
bluesakura
2021-12-08 17:30:36 +08:00
有人试过 Windows 下的 chrome 浏览器支持 hevc 硬解吗,edge96 在 win10 下不支持。
bluesakura
2021-12-08 17:36:56 +08:00
目前除了 safari ,没有浏览器支持 hevc 硬解码,可以通过这个网站查询 吼吼 https://caniuse.com/?search=h265
tiramice
2021-12-08 18:28:17 +08:00
各平台都是只有自家浏览器支持 hevc 硬解
Windows 上 Edge 可以硬解 hevc ,ChromeOS 上 Chrome 可以硬解 hevc
tiramice
2021-12-08 18:32:27 +08:00
@bluesakura win10 需要从商店装 hevc 扩展,装上以后 edge 就可以硬解了
打开 edge://gpu ,看下面的 Video Acceleration Information
Decoding (VideoDecoder)
Decode h264 baseline 64x64 to 4096x4096 pixels
Decode h264 main 64x64 to 4096x4096 pixels
Decode h264 high 64x64 to 4096x4096 pixels
Decode vp9 profile0 64x64 to 8192x8192 pixels
Decode vp9 profile2 64x64 to 8192x8192 pixels
Decode hevc main 48x48 to 8192x8192 pixels
Decode hevc main 10 48x48 to 8192x8192 pixels
Decode hevc main still-picture 48x48 to 8192x8192 pixels
Decoding (Legacy VideoDecodeAccelerator)
Decode h264 baseline 64x64 to 4096x4096 pixels
Decode h264 main 64x64 to 4096x4096 pixels
Decode h264 high 64x64 to 4096x4096 pixels
Decode vp9 profile0 64x64 to 8192x8192 pixels
Decode vp9 profile2 64x64 to 8192x8192 pixels
Decode hevc main 48x48 to 8192x8192 pixels
Decode hevc main 10 48x48 to 8192x8192 pixels
Decode hevc main still-picture 48x48 to 8192x8192 pixels
Encoding
Encode h264 baseline 0x0 to 1920x1088 pixels, and/or 30.000 fps
Encode h264 main 0x0 to 1920x1088 pixels, and/or 30.000 fps
Encode h264 high 0x0 to 1920x1088 pixels, and/or 30.000 fps
ZeroClover
2021-12-08 18:50:01 +08:00
ScepterZ
2021-12-08 19:10:58 +08:00
@tiramice 这里有 hevc 就说明可以了吗
river010
2021-12-08 19:35:22 +08:00
但是有个问题不知道 LZ 遇到过没,safari 提示此网页消耗了大量内存,需要关闭,据说是内存泄漏? chrome 倒是没遇到过。
ruib
2021-12-08 20:32:56 +08:00
@river010 这个倒没遇到过,因为我主力 Firefox...
tiramice
2021-12-08 20:39:28 +08:00
czhu
2021-12-08 20:49:30 +08:00
不知道油管的表现是否也类似?
AndyZhuAZ
2021-12-08 21:09:11 +08:00
我也想换到 Safari ,但是 Safari 打开和加载都有比 edge 慢,搞不懂
EdwardKot
2021-12-08 21:13:50 +08:00
还在用 chrome 的唯一原因是我需要全局翻译(不仅仅英文-中文) 不然早就卸载 chrome 了
aureole999
2021-12-08 21:29:45 +08:00
@tiramice 不是吧,我 chromebook 上并不能。显卡是 HD 615 ,硬件上应该是支持 HEVC 解码的
tiramice
2021-12-08 21:57:18 +08:00
@aureole999 限制比较严格
Google ChromeOS on Intel Gen 11-based Chromebooks for protected content playback only
dingwen07
2021-12-08 22:59:27 +08:00
Edge 的标签页休眠功能,能让开一堆网页的情况下省电太多
实测都不怎么出现在电池图标下的“使用大量能耗”里面了
jakezh
2021-12-09 01:28:19 +08:00
为什么大家都在强调省电。。。大家不都是在公司 /家 /星巴克插着电用吗
Maxxxxyu
2021-12-09 09:11:05 +08:00
@tiramice #23 Edge 只有老版本可以吧,新版本用 Chrome 内核的也不行,需要改 UA
tiramice
2021-12-09 10:56:53 +08:00
@Maxxxxyu 新版本也可以
Maxxxxyu
2021-12-09 11:08:26 +08:00
@tiramice #38 那为啥 B 站想要看 HDR 的话需要把浏览器改成老的 Edge 的 UA 才行?
tiramice
2021-12-09 11:31:55 +08:00
@Maxxxxyu 那是 B 站的限制,不是 Edge 不支持,我猜的话估计是 B 站播放器在新 Edge 上有 bug

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/820840

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX