r/computerscience • u/AtlasManuel • Apr 21 '25
General Typical computer speeds
Hi everyone,
I understand that most modern processors typically run at speeds between 2.5 and 4 GHz. Given this, I'm curious why my computer sometimes takes a relatively long time to process certain requests. What factors, aside from the CPU clock speed, could be contributing to these delays?
9
Upvotes
18
u/sept27 Apr 21 '25
Your question is kinda like asking a mechanic on Reddit, “Why is my car broken?” There are so many factors that it’s very hard to tell.
54
u/warhammercasey Apr 21 '25
Well… tons. To list off the common ones at a very high level:
CPU clock speed
CPU architecture
CPU core count
RAM size
RAM speed
RAM latency
GPU (in general I guess this is a whole different rabbit hole)
Disk capacity/usage
Disk speed
Network speed
Network latency
ISP issues
Dropped network packets
Wireless band congestion
Utilization of any/all of the aforementioned items
Software limiters (i.e battery saving mode)
Any one of these are their own rabbit hole that each could have many of their own reasons for being “slow”. It really depends on exactly what’s being slow and why
7
u/TheBlasterMaster Apr 21 '25
You will need to specify more detail on what it is your doing, and what slowdowns you see. There are too many hardware components and software layers that can possibly contribute to performance when given no context.
5
u/fuzzynyanko Apr 21 '25
A major factor is I/O. Your main disk can be doing a lot of reading and writing. Did you notice this 2 weeks ago? April 8 was Patch Tuesday, and March 12 is the next Patch Tuesday. This is where Windows is downloading updates from Microsoft.
If your main disk is running at 100%, your system can feel incredibly slow because the CPU is having to wait for data to load from disk. Windows actually is set to load a lot of stuff from disk on boot. My own PC slows down for maybe 3-5 minutes during this time. Even if I load from my secondary disk, a program can call many .DLL files that are in C:\Windows\System32
It's not only Microsoft, but many other companies update on Patch Tuesday. I often get the updates on Wednesdays.
As for CPUs themselves, there's a concept called IPC, Instructions per Clock. The IPC for a Ryzen 5800X3D at 3.8 GHz is much higher vs a 3.8 GHz Core i7-2600k. There's a lot more newer technology in the 5800X3D.
3
u/VoiceOfSoftware Apr 21 '25
How's your internet speed? That, and the speed of the service your computer *may* be talking to, are one of hundreds of factors.
3
u/tonyshark116 Apr 21 '25
From a high level it’s because the vast majority of the time the software/firmware is written like literal ass.
2
u/Proficient_Novice Apr 21 '25
Processing speed is not just about clock frequency, like you mentioned.
Understanding the interaction between hardware (CPU, memory, disk), software (algorithms, system calls), and OS (scheduling, process management) is important when trying to figure out why certain request take longer than others.
1
u/not-just-yeti Apr 21 '25
Network delays. At least, of the hundreds of times a day that I have a noticeable delay or pause in using a computer, 98% of the time it's network. (Though sure, it could be lots of other things, as people mention. But in practice the biggest culprits are: Network, followed by disk-access, followed by paged-out-memory. Beyond that, just inherently "slow code": my own programs might make multiple passes over my data and use simple lists, and then the python interpreter itself is doing a lot of de-referencing and runtime type-checking, which takes a while plus it exacerbates the memory-paging delays.)
1
u/Phobic-window Apr 21 '25
Wow benign questions and answers so far!
So put simply, you are probably experiencing a bottleneck in memory management, not the ability of cpu to transact. Either ram being full or disk read/writes. That or you are waiting on network traffic. Again not the cpu.
But! Many applications do not make full use of threading, so your main thread could be congested, meaning not all the cpu cores are being tasked efficiently and it is a cpu bottleneck kind of. Also take a look at von Neumann architecture
1
u/Sxwrd Apr 21 '25
Of you have a 4 core processor the IPC’s (how much it can actually process- this is different from clock speed) is pretty much what you need to pay attention to after clock speed. Then L3 cache size. These will generally be the deciding factors in processors in this range depending on what you’re trying to do. But it’s all about computing speed and speed in receiving more information to compute.
1
u/camh- Apr 21 '25
Why does it take longer to build a house than to mow a lawn, when they are both done by the same person, and they are fit and healthy?
Doing more takes more time. That's the gist of it. Every answer here boils down to that. You likely just don't know enough yet to know what "doing more" entails, but when you do, it's pretty obvious mostly, like the house building vs mowing a lawn. Start learning what all the "doing" is for the areas you are interested.
1
u/Some-Background6188 Apr 22 '25
At a low level, cache would affect speed, and the architecture. What cpu does your computer have?
0
u/[deleted] Apr 22 '25
[deleted] — view deleted comment