Is an upgrade from 7950X to 9950X3D for heavy web dev worth it?

I am using Windows 10 running WSL2 (Ubuntu) with a bunch of docker containers. My main set up is using VSCode and writing a heavy web app using Typescript.

Sadly, the project has gotten so big, that auto completes are taking literal dozens of seconds (My Copilot suggestions are 99% of the time faster than the actual autocomplete, or I have to type stuff out by hand).

Importing files and other actions are taking forever, and I am not sure if a CPU upgrade might be worth it due to the extra L3 Cache as well as node shrink from going to 7950X to the 9950X3D.

My system is running on NVME SSDs as well as 64GB of RAM, but since Node/Typescript is pretty much single-threaded I am not sure if this would impact things at all.

I tried looking for productivity/development benchmarks, but most of the things I can find are more gaming-related/-focused.

The price is irrelevant here, as it would be a business/company expense. So if there’s a good chance an upgrade will make things faster, then I’ll do it. I just don’t want to upgrade if there’d be no change whatsoever.

Thanks in advance!


Edit: This is my current build: 2023 Build - Updated - AMD Ryzen 9 7950X, GeForce RTX 4090, Fractal Design North ATX Mid Tower - PCPartPicker

Upgrade can help. The extra L3 cache really benefits tsserver and VSCode in big monorepos where cache access speed matters more than raw clock speed. Just note that WSL2 adds overhead, so some gains may be masked unless you move parts of the workflow outside it.

Also, make sure you’ve already tried increasing tsserver memory limits and using project references in your tsconfig. If the budget isn’t a concern, the upgrade is worth it.

7950X with 64 GB of RAM and all NVMe storage is a giant amount of compute.

My guess is your problem and the solution lies in the software domain.

Even if dropping in a new CPU halves the autocomplete time, half of dozens of seconds is still painfully slow!

Makes me wonder, if it’s a large code base, are there others working on it? Do they have the same lag? Will everyone who works on it now or in future need to be issued a 9950X3D or faster?

I presume it wasn’t this slow on day one of the code base, but rather grew to this barely tolerable state. Sometimes by throwing more hardware at the problem, you’ll enable it to grow even slower until it’s barely tolerable once again.

2 Likes

Thanks for the replies so far! I’ll try to answer them in order :slight_smile:

I know of the WSL overhead, and already have all of the code inside of WSL2 (not on my windows drive, and then accessing it via the mounted version). VSCode is also running in ā€œWSLā€ mode which (afaik) means that it runs a server on the linux machine as well. Usually; this is very fast and snappy.

What’s funny is that sometimes an autocomplete may take up as much time as doing a full tsc of the project (yes, really).

I… actually haven’t. I didn’t know that was a thing (oops!) and turned the 3GB up to 20GB. That seemed to have helped in pure .TS files somewhat, actually. Sadly, not in all cases. I also don’t see it actually using that much (the full linux machine is usually hovering around 13GB, my full PC around 45 of 64).

That’s something we’re already doing, yes (and yes, we have a bigger mono repo set up).

So far I am the only windows/linux dev - the others got the newer MacBook Pros (M3 or M4 Pro/Max). But yeah, obviously not a good case to have!


I actually recorded a bit of how slow autocomplete is (and how copilot is actually helping here in a way). This is how slow it usually is (even with the increase in tsserver memory mentioned above):

Before doing anything else, I’d plop another cheap SSD into the machine and set the Linux on it, instead of running a bunch of containers and virtual machines.

Those things ain’t free, they do eat memory and cache, especially when you layer them.

Also, they sometimes use stupid tricks like mounting each other disks through virtual network cards etcetc.

i should probably clarify that the app itself is running in a container, yes, but VSCode is not operating within a container or accessing data within one. the files are located in the WSL2 file system directly.

i guess i can try my work mbpro and compare speeds (it’s an m4 ultra with over 30gb of ram). if it’s slow on there as well, the issues might be elsewhere.

Check CPU and memory useage when IDE freezes for those 10-15s.

Could it be that your machine is swapping ?
I’ve heard that VSCode runs on Javascript and can be memory&CPU hog.

Could you try something like Lapce or Zed, just to compare ?

This is what I would do before buying new hardware, which is unlikely to see a significant uplift. The upgrade to zen 5, even with a cache die, just won’t bring in the gains you probably really need. 30% is probably very optimistic and that won’t move the needle enough to fix this.

I would first try switching to Linux and see the performance difference.

Try on Mac.

If this doesn’t work you’ve just hit the wall for this combination of ide and code base.

Try Jetbrains webstorm.

Or

Try refactoring the code base to track down what’s killing performance.

I once fixed a slow dev cycle by digging through the auto build. Managed a 100x speed up in two days of work because the person who built it clearly didn’t understand performance.

keep in mind that vscode probably runs things like autocomplete in WSL. When I use it I don’t even have npm installed in windows. You should check the resources that are given to WSL.

+1 for sanity checking via separate linux enviroment or different IDE.

This does not seem like the issue due to lack of resources. You build has no obvious issues and is still 90% percentile plus performance wise, probably 95%+ for single thread limited workloads.

Move to 9000 series X3D cannot be guaranteed to improve your observed performance.

Vscode is a pig, especially with extensions and I am guessing you are heavy user. Try to profile it and installed extensions first. Eliminate everything you dont need for task.

WSL and remoting add another layer of overhead that can cause issues as other have already pointed out. It also can be something insane as plugin trying to calling home and timing out.

This issue is common enough that debugging has FAQ from microsoft: Performance Issues Ā· microsoft/vscode Wiki Ā· GitHub

General process should be helpful even for autocomplete debugging.

TLDR: profile vscode itself while working, what component is doing what during observed stalls?

Accessing the Windows filesystem from WSL and vice versa is extremely slow.

I wonder if your issue is in any way related to what Devin Red has experienced and described here:

His main problem was a sometimes severe delay between input on his keyboard and the response on the screen, but some of his troubleshooting might be helpful here also. In his case, Emmett was the main culprit (who’d have guessed? Not me, either :grin:) .

may be useful, I’ve upgraded it several times since then, but basically cracked the same nut you are trying to, happy to discuss in more depth for your specific use cases, as i dual dev in cursor/vscode and have wsl2 (2x ubuntu instances) open 24/7 - i dont visit here too often so faster replies on reddit, /u/sotashi

I tried, and I am not seeing any major spikes, actually (neither in the windows task manager, nor via htop). Only bit is 100% CPU usage on a single thread until auto-complete is popping up, but not the memory peaking.

Also, swapping is not quite possible, as I turned it off (and like I mentioned earlier, it usually is hovering around 10GB out of the 36GB that I gave the WSL machine). Here’s the config I have:

[wsl2]
memory=36GB
processors=16
swap=0

Yeah, so - i just installed it on the MBP that I have, and there it does seem a bit smoother, but the delays are still there (so, not instant, just faster). I will don’t have a ton of extensions (Tailwind + Vue + Eslint + EditorConfig), and I already turned off ESLint to not have to deal with that during save.

I am already trying to get rid of the barrel files that we have, but that’s just a small step towards optimizing build & autocomplete/resolve performance :confused:

Mentioned the resources above, shouldn’t be an issue, I’d say.

Yeah, I’m not doing that at all. All the files are inside of WSL, there’s no windows access (not even with Git, etc…). And the docker machines are very fast as well, i am getting single digit ms server responses.

I’ll take a look! But yeah, I don’t really have input lag, it’s really just autocomplete (as the video above shows, even copilot is faster - most of the time).

1 Like

Only bit is 100% CPU usage on a single thread until auto-complete is popping up, but not the memory peaking.

Thats all it takes, if it spike time matches the autocomplete timeout.

Describe how your autocomplete setup works and what serves it. It can the bottlenecks here.

I take it its plugin or plugin and some language server?

Btw, I just tried this with Webstorm (latest version) - using the WSL integration. It works, but is somehow not giving me the right auto-complete results. My components have props that don’t show up in the list, and when i manually type the names of them it doesn’t know what’s going on.

I love the Jetbrains products, but for some reason VSCode is still the best for JS/TS stuff.

For regular TS files, I am using the integrated TS language server (typescript version, since the go one is still not quite out just yet). Other than that, we’re using Vue, which would be using GitHub - vuejs/language-tools: ⚔ High-performance Vue language tooling based-on Volar.js (i got 2.2.8 installed, but even the insider build isn’t better).

Then try to profile performance from within the vscode per the guidelines I shared when issue occurs. Tooling is there

I bet it some weirdness around the used plugins. Either they choke on size of your dataset, some weird network effect if you data is remote, or its just plain unoptimized.

Once you identify which one is wasting cpu time and causing visible delays, you can consult upstream whether its common or isolated occurrence.

I already did use the profiler. 22ms for everything and the rest is idle - across a 30sec window. Not sure if that’s just a plugin waiting on an external process then, but it didn’t show me more than that (i used the extensions profiler + profiled the VSCode instance itself).

I would suggest firstly, buy a way faster NVme M.2 - Crucial 705 2TB. Secondly, ubuntu is really the culprit.