Hacker News new | ask | show | jobs
by Const-me 1796 days ago
> In real world tasks (web browsing, opening an IDE)

My real-world task is not opening an IDE, it’s using that IDE. Modern C++ compilers are using all available CPU cores just fine.

> It only loses to AMD in multi threaded benchmarks

These are the only workloads I care about. Not just compilation, many other things as well.

You only need single-threaded performance for 2 things, for the stuff that’s inherently serial like gzip, or to run programs made more than 5-10 years ago.

I don’t normally play games on a laptop, but even videogames use multiple cores for decades now, since the Xbox 360 / PS3 generation.

3 comments

> You only need single-threaded performance for 2 things, for the stuff that’s inherently serial like gzip, or to run programs made more than 5-10 years ago.

You must not be grand strategy game players. Any titles from Paradox and some other popular games are all limited by single core IPC. They are a great example of the limits of multi-threading, some processes and problems cannot be adapted to take advantage of it. If I get such a laptop I'd spend 50% of the time I use it playing such games.

> They are a great example of the limits of multi-threading

These are examples of lazy programmers and PC-only games. Consoles have many cores for decades and these cores are slower than PCs, developers of cross-platform titles have embraced multithreading for quite some time now.

Multithreading does have limits. Some things are borderline impossible to parallelize, examples include gzip, streaming encryption algorithms, or parsing long streams of HTML and JavaScript. However, vast majority of the CPU-bound stuff found in videogames scales just fine with CPU cores.

For gzip, try pigz. It's the parallel version of it.

I used to want high single core performance for my python code. I've since switched to using VSCode with devcontainers which run remotely on my 5950x. That makes it fast enough ;-).

Also web is still single threaded.
Indeed, but web is not computationally expensive. Even old computers like my laptop with i3-6157u CPU handle web just fine.
What do you mean by that?

Firefox and Chrome both have gpu hardware acceleration, and different threads/processes for UI and webpages.

Javascript is parsed and executed on one core.
If you have just one tab, with a simple webpage with no iframe, yes. But this use-case is handled even by a first-gen Raspberry Pi.

Once you start having several tas open, or web pages with different iframes, modern browsers put those in different processes.