9 ms·
Idling on the New York Times's homepage without an adblocker in Firefox, Activity Monitor says the tab is using ~10% of one core of my cpu, and About:Performanc
by Wowfunhappy 7y ago
Idling on the New York Times's homepage without an adblocker in Firefox, Activity Monitor says the tab is using ~10% of one core of my cpu, and About:Performance says it's using ~200 MB of memory.
Now, I have a pretty fast CPU—a 4790K—and it wasn't that long ago that most computers had less than 200 MB of RAM total. And, you could read on those computers just fine.
On the other hand, if I repeat the same test with my Slack tab, I get 30% of CPU and 400 MB of RAM. Slack doesn't have ads, and IM clients are another thing that worked just fine 20 years ago.
I guess my point is, the web is bloated, and I'm not sure why we're harping on The Times.
- vorpalhex 7y agoSlack has an entire app ecosystem layer in it these days, not to mention they've never really trimmed down the electron fat. Slack hasn't been a contender for "well made" in quite a few months. NYT should be a relatively simple website. Sure, they have some very nice interactive stories and we'll give those a pass, but even just plain text articles load an amazing amount of cruft. It's text, just send the damn text. Everyone else being bloated isn't an excuse.
- cptskippy 7y ago> Slack hasn't been a contender for "well made" in quite a few months. It was a contender? > NYT should be a relatively simple website. There's editors from the NYT lurking here who will strongly disagree.
- vorpalhex 7y agoOnce upon a time, Slack was actually really solid and I happily used it. It.. was quite some time ago. And sure, obviously NYT is more complex than throwing textfiles at users.. but do you really need to be running A/B tests for acquisition and have such a complicated pipeline to buying a subscription? Do you need dozens of analytics suites? Data is useful, but only to an upper bound of what you can meaningfully analyze.
- cptskippy 7y agoI don't disagree with you AND I've already been chastised once in the last week by a NYT staff member for daring to challenge their assertion that the web should be and overly complicated mess.
- vorpalhex 7y agoCutting through institutional pressures is not easy, especially when those pressures are well entrenched. I recently had to rid our SEO department of a religious belief that everything in creation must be server-side rendered or it couldn't be indexed and the phrase "holy war" applies. So, I have some empathy for the NYT staff as individual contributors, but as an org, it's time to evolve.
- stimpson_j_cat 7y ago.
- jsjw7sbw 7y agoAre you working for booking.com?
- Wowfunhappy 7y agoThe New York Times's Homepage isn't just text though. I see a lot of large, high-quality images, many of which transition to other images so you can see multiple visuals for a story. There's a "live updates" sidebar and a real-time stock ticker. There are video and audio embeds. > Everyone else being bloated isn't an excuse. It's not, but I'd rather focus on the worst offenders instead of the half-decent ones. I didn't compare it to Slack because I thought Slack was a good example—I did it for the exact opposite reason. And, as long as there are sites that are so much heavier and yet seem to be doing fine (I don't like it, but it is what it is), I doubt NY Times is removing 3rd-party ads due to performance issues. It could be a nice side effect, though.
- vorpalhex 7y agoFor comparison, I disabled ublock origin and privacy badger and loaded https://fivethirtyeight.com https://fivethirtyeight.com which is in the same realm - heavy text content with several interactive widgets, video and audio embeds. Render time for my (aging) macbook pro is within the acceptable threshold (< 1500ms), memory snapshot in firefox is ~90Mb, and it feels like it loads quickly and responsively. It could be better - but it's infinitely more usable than NYT for me.
- deleted 7y ago[deleted]
- VHRanger 7y agoI don't think 1.5sec render time is acceptable for a webpage whose main payload of interest is 2-5kb of text (the article).
- JustFinishedBSG 7y agoThere's no articles on the page linked, and all the graphs on the right are dynamically rendered
- Intermernet 7y ago
- x3blah 7y ago"It's text, just send the damn text." They only send what the user requests. Using a software program that makes automatic requests that you are not easily in control of, e.g., a popular web browser, might give the impression that they control what is sent. They do not control what is sent. The user does.^1 The user makes a request and they send a response. One of the requests a fully-automatic web browser makes to NYT is to static01.nyt.com Personally, as a user who prefers text-only, this is the only request I need to make. As such I don't really need a heavily marketed, fully-automatic, graphical, ad-blocking web browser to make a single request for some text.^2 #! /bin/sh case $1 in world |w*) x=world # shortcut: w ;;us |u*) x=us # shortcut: u ;;politics |p*) x=politics # shortcut: p ;;nyregion |n*) x=nyregion # shortcut: n ;;business |bu*) x=business # shortcut: bu ;;opinion |o*) x=opinion # shortcut: o ;;technology |te*) x=technology # shortcut: te ;;science |sc*) x=science # shortcut: sc ;;health |h*) x=health # shortcut: h ;;sports |sp*) x=sports # shortcut: sp ;;arts |a*) x=arts # shortcut: a ;;books |bo*) x=books # shortcut: bo ;;style |st*) x=style # shortcut: st ;;food |f*) x=food # shortcut: f ;;travel |tr*) x=travel # shortcut: tr ;;magazine |m*) x=magazine # shortcut: m ;;t-magazine |t-*) x=t-magazine # shortcut: t- ;;realestate |r*) x=realestate # shortcut: r ;;*) echo usage: $0 section exec sed -n '/x=/!d;s/.*x=//;/sed/!p' $0 esac curl -s https://static01.nyt.com/services/json/sectionfronts/$x/index.jsonp Example: Make simple page of titles, article urls and captions, where above script is named "nyt". nyt tr | sed '/\"headline\": \"/{s//<p>/;s/\".*/<\/p>/;p};/\"full\": \"/{s//<p>/;s/..$/<\/p>/;p};/\"link\": \"/{s///;s/ *//;s/\".*//;s|.*|<a href=&>&</a>|;p}' > travel.html firefox ./travel.html Source: https://news.ycombinator.com/item?id=22125882 https://news.ycombinator.com/item?id=22125882 The truth is that they are just sending the damn text. However you are voluntarily choosing to use a software program that is automatically making requests for things other than the text of the article, i.e., "cruft". 1. The Google-sponsored HTTP/[23] protocol is seeking to change this dynamic, so if websites sending stuff to you without you requesting it first bothers you, you might want to think about how online advertisers and the companies that enable them might use these new protocols. 2. However I might use one for for viewing images, watching video, reading PDFs, etc., offline. Web browsers are useful programs for consuming media. It is in the simple task of making HTTP requests that their utility has diminished over time. The user is not really in control.
- augustt 7y agoAs another datapoint, this HN page uses 56MB in Chrome for me.
- Wowfunhappy 7y agoThat's actually strangely high for HN, I get 7.6 MB in Firefox.
- jeltz 7y agoI get 11.1 MB in Firefox.
- abdullahkhalids 7y agoI have 10.4 MB on firefox and, on Chrome is 33 MB.
- rootusrootus 7y ago17.35 MB for me in Firefox 76.0.1 on MacOS 10.15.4. But it has been a couple hours since your comment and the other replies :)
- Mattwmaster58 7y ago15Mb when measured through about:performance 70Mb when measured through about:memory I don't know why they are different.
- OJFord 7y agoM? Are you sure? I get a 58kB HTML document, plus 2kB each CSS & JS, 3 * ~400B images, and a 7kB favicon. Edit: Oh sorry, RAM. Leaving comment just to compare page size to RAM use for interest.
- azinman2 7y ago47.10MB in Safari
- kroltan 7y ago11MB on Firefox, Windows.
- iamaelephant 7y agoBecause this is an article about The Times.
- catalogia 7y ago> I'm not sure why we're harping on The Times. Because '10% of a core and 200 MB of ram' just to read a few headlines is obscene, and slack being even worse doesn't make the NYT's bloat less obscene. With my uBO/uMatrix settings, about:performance in firefox reports that the nytimes.com homepage takes 7.9 MB of ram (and immeasurably little CPU time, because I disabled javascript.) https://lite.cnn.com/en/ https://lite.cnn.com/en/ is better insofar as it takes 2.6 MB of ram.
- SilasX 7y agoThank you for making that point and alerting me to the existence of the far more usable Lite CNN site.
- all_blue_chucks 7y agoA six year old CPU can still be described as "pretty fast?" Moore's Law really must be dead and buried.
- kroltan 7y ago8 threads, 8MB cache, 4GHz? Pretty fast, yes. Not the fastest, by far, but are you really arguing that casual web browsing for news viewing (viewing! the stats are not even for page load, but idle) should require top of the line equipment?
- all_blue_chucks 7y agoNo, I'm saying Moore's Law suggest(s|ed) that every 18 months your chip's speed relative to current offerings is about half what it was. And this old chip has had four cycles of that exponential decay. I just built a 12 core system I would describe as "pretty fast." A high end consumer desktop these days is 16 cores. A couple years from now, that will be considered "pretty fast."
- gshdg 7y agoActually, Moore's law says nothing about speed, just the number of transistors you can stuff into the thing. Plus progress has been leveling off.
- all_blue_chucks 7y agoThe only reason anyone ever cared transistor count is because that is a rough proxy for measuring speed.
- TeMPOraL 7y agoIt hasn't been for a long, long time now.
- marcosdumay 7y ago
- dahart 7y agoIt really isn’t easy to make any fair claims about memory usage unless you’re being extremely careful. The browsers and apps do all kinds of crazy caching with freely available memory, for performance reasons, and they can get by with a lot less than what you’re quoting. Try seeing how memory scales if you open 10 or 100 tabs. It might seem super bloated until you’re about to run out of memory, and then somehow seemingly magically be able to still open two or three times as many tabs.
- dahauns 7y agoHaving the ability to magically open new tabs in this situation doesn't do a whole lot of good when all the other applications still suffer from overall memory pressure because the app doesn't give back memory to the OS in time when needed.
- faho 7y ago> it wasn't that long ago that most computers had less than 200 MB of RAM total. Half-Life 2 lists 512mb ram as required. It came out in 2004.
- Wowfunhappy 7y agoI was thinking another decade further back than that, or so. :) Also, Half Life 2 was a state-of-the-art video game for an audience that largely had fancy gaming PCs.
- virtue3 7y agoVideo games still target pretty mainstream pc specs. They have to, or no one can run the game. Sans Crysis.
- Wowfunhappy 7y agoNot every game is Crysis for sure, but for instance, a lot of AAA games right now require 8 GB of memory minimum. The $400 Surface Go 2 that came yesterday has only 4 GB of memory in the base config, and such specs aren't isn't particularly uncommon. Not that you'd be playing AAA games on that machine even if it had more memory, but hence my point.
- grogenaut 7y agoNeither the Xbone or the PS4 offer 8GB of ram to the game (system reserves), and yet almost every AAA game launches on those platforms. They likely couldn't run Slack or the NYT tho. Just think about how slow the PS4 store loads (it's html5) or the whole xbone ui. Games are actually optimized for speed. NYT is optimized on a different key performance indicator.
- p1necone 7y agoLooked up similar hardware running games on Youtube and yup - it's pretty awful even for quite old AAA titles. Bet it still runs league of legends at like 150fps though. https://www.youtube.com/watch?v=bQ4Oh0BAt6I https://www.youtube.com/watch?v=bQ4Oh0BAt6I
- rkagerer 7y agoI remember when computers were faster than me. Those numbers barely keep up with my standard issue brain, which is 40-year-old tech and can just about read the newspaper and carry on intermittent conversation at the same time.
- jrochkind1 7y agoAll I can say is Slack performs just fine for me on my Mac laptop, I never notice it being laggy. When I go to NYTimes without an ad blocker, it takes a long tie to show up, it sometimes freezes my scrolling while it loads things, things jump around on the page so when I'm trying to click something I get the wrong target as some ad loads and moves things around, it can be 10 seconds until the page stabilizes after load. I do not experience that with Slack. How does Slack use so much RAM and CPU and still perform better than a mostly static page of text and graphics? I dunno. But it does. In the end the RAM and CPU usage matter to me theoretically, but all that really matters is the actually experienced interface. The NYT may not be the worst, but it's definitely worse than many, and the comparison to Slack is odd to me, cause my experience with Slack is that is quickly responsive with no lag. You have a different experience, for you nytimes loads faster and has interactivity with less lag/freezing up than Slack, which for you has a lot of lag/freezing/slow load problems?
- kevindong 7y ago> it wasn't that long ago that most computers had less than 200 MB of RAM total I don't think you're aware of how much time as passed since 200 MB of RAM was the norm. Even in 2005, lower end Dell laptops ($639) had 256 MB of RAM as the minimum [0]. The 2002 PowerBook G4's base model had 256 MB [1]. [0]: http://web.archive.org/web/20050309050556/http://www1.us.dell.com/content/products/features.aspx/inspn_1000?c=us&cs=19&l=en&s=dhs http://web.archive.org/web/20050309050556/http://www1.us.del... [1]: https://en.wikipedia.org/wiki/PowerBook_G4#Models https://en.wikipedia.org/wiki/PowerBook_G4#Models
- Wowfunhappy 7y agoA few weeks ago, out of Coranavirus-induced boredom, I decided to run Apple Rhapsody in VMWare, which can be thought of as a very early version of OS X. At first, I couldn't get it to boot—it kept kernel panicking, and I couldn't figure out why. After a bit of Googling, I found the problem—I'd given the VM too much memory. Rhapsody DP2 will not boot if it has access to more than 192 MB of RAM. I assume Apple figured that no one would ever need that much. Rhapsody came out in 1998. Not really that long ago.
- GeekyBear 7y ago>I decided to run Apple Rhapsody in VMWare, which can be thought of as a very early version of OS X. Rhapsody was more of a quick and dirty port of NeXTSTEP to Mac hardware than a version of OS X. https://en.wikipedia.org/wiki/NeXTSTEP https://en.wikipedia.org/wiki/NeXTSTEP >Rhapsody came out in 1998. NeXTSTEP is from the late 80's.
- rb808 7y agoNow compare to nj.com
- searchableguy 7y agoI don't think 4790K is that powerful anymore. Anything below intel's 8th generation is pretty lower end regardless of gen. They increased core count for every gen starting 8th gen and made a significant leap in perf. Your processor would give the same perf as the lowest end ryzen.
- Wowfunhappy 7y ago> Your processor would give the same perf as the lowest end ryzen. Not for single core performance though, right? Which is what I'm looking at here.
- LegitShady 7y agoAn AMD Ryzen 7 2700x has faster single core performance than yours, maybe 5% more. Anything faster/more recent is even more. It's multicore advantage will be much more.
- winrid 7y ago2700x user here. I didn't realize how low end it's considered! I game and do all the coding things and never really wait long for games to load or code to compile...
- LegitShady 6y agoEveryone has different requirements. Depending on your resolution and required frame rate you might have get a more powerful video card that becomes bottlenecked by your cpu. But the 2700x was a good buy, in retrospect.
- winrid 6y agoYeah, I also built this machine last year. 1050TI, 64gb ram.
- 6y ago
- TylerE 7y agoYou weaken your argument by making a rediculous statement that "and it wasn't that long ago that most computers had less than 200 MB of RAM total." Yes it was. 1997 was a long time ago. Kids born that year can legally drink.
- 72deluxe 7y ago"Progress" has been disappointing in the computing world but none of the modern devs seem to have an issue with these slow giant bloated apps!
- raxxorrax 7y agoNot the NYT, but some other at least partially renowned news site in my country has that problem. I am one of these crazies that doesn't like mobile sites, so I mainly use desktop versions. Had my phone fully charged an left the page open. An hour or so later the phone already shut down.
- phailhaus 7y ago> IM clients are another thing that worked just fine 20 years ago. Bit of an absurd claim to make, since IM clients 20 years ago had a fraction of the features that Slack has today. To pretend otherwise is disingenuous.
- deleted 7y ago[deleted]