3 ms·
> start outperforming your competition instead of merely banning your competition FWIW, Safari generally outperforms competing browsers on benchmarks.
by saagarjha 7y ago
> start outperforming your competition instead of merely banning your competition
FWIW, Safari generally outperforms competing browsers on benchmarks.
- greggman2 7y agoWAT? I see Safari being substantially slower on pretty much every benchmark I throw at it. Unless you:re on iOS where Apple bans competing browers
- saagarjha 7y agoNo, I'm talking about macOS. Instead of linking to webkit.org's results, I'll provide a relatively recently run by someone on Hacker News: https://news.ycombinator.com/item?id=17361888 https://news.ycombinator.com/item?id=17361888
- millstone 7y agoAn under-appreciated fact is that JavaScriptCore is really really fast, and often outperforms v8 on benchmarks.
- pohl 7y agoDo you consider efficient use of battery to be a dimension of “performance”? I do.
- Frondo 7y agoSafari's impact on battery life is amazing, and the main reason it's also my daily driver. I work a lot off of battery, and while Firefox recently got a lot better, it's still hard to trade a few hours of work time. and yes, even on my five years old air, I can get five hours of work in using safari, only three with Firefox.
- lern_too_spel 7y agoBy using undocumented MacOS private APIs, which bolsters his point. On OSes that don't have this issue, other browsers perform better on the same hardware. https://mozillagfx.wordpress.com/2019/10/22/dramatically-reduced-power-usage-in-firefox-70-on-macos-with-core-animation/ https://mozillagfx.wordpress.com/2019/10/22/dramatically-red... This has been going on since WebKit launched with no effort from Apple to clean it up, so it certainly seems intentional. http://archive.is/MtntN http://archive.is/MtntN
- om2 7y agoCoreAnimation is not a private API. Everything directly mentioned in that post is public API. Firefox may use private API but it’s not mentioned in the post.
- lern_too_spel 7y ago"It’s worth noting that the ability to assign an IOSurface to the CALayer contents property is not properly documented."
- om2 7y agoContents property itself is not a private API. Quality of docs I can't speak to, but it's a different issue than private API (which is stuff that's not in the public SDK).
- lern_too_spel 7y agoThe second link has private APIs, and the header file to access those private APIs still exists in WebKit for MacOS. I mentioned both undocumented and private. The first link just shows that if you are Apple, you can correctly call APIs that provide a performance increase on MacOS. Because of that, my recommendation is to just stop using MacOS if you care about browser performance.
- saagarjha 7y ago