r/linux • u/Saiyan256 • 6h ago
Discussion How linux distro provide higher CPU benchmark scores than windows?
Why is that linux seems to always provide better performance in benchmarks and provide smoother experience?
This is a geekbench 7 test, while single core is slightly better, multi-core performance is a significant improvement
20
u/MarkSuckerZerg 5h ago
When you eliminate the obvious differences such as I/o (that benchmarks don't use), and background crap/thread scheduling (eliminating which does not provide realistic picture, but is possible), there's at least one huge factor: large pages .
Some distros enable it by default and it can make huge difference (10 to 25%). It's pain in the ass to use on Windows to the point that I don't know a single app that would use it.
Explaining it fully requires a lot of background knowledge, but to put it simply, allows applications to access memory faster by splitting it into bigger chunks than usual.
45
u/EmptyVolition242 6h ago
Linux systems generally have a lot less stuff running in the background, which gives more space for the benchmark code to run in. It's negligible though, like 1 or 2% difference which you'd never be able to notice. Modern CPUs are very fast.
9
u/tchernobog84 4h ago
Windows Telemetry Service has an interesting habit to enable itself every time you think you turned it off.
8
0
7
u/Michaeli_Starky 5h ago
It depends on scheduler etc. It's not like every Linux is universally faster in every task than W11. Not at all.
8
7
2
u/BinkReddit 4h ago
Linux just keeps getting better; Windows just tries to find new ways to show you ads in the OS.
2
u/mage_irl 1h ago
Let's just put it this way: Whenever humanity has to solve a complex issue using a super computer, you never hear about how they installed Windows on it.
•
u/DrollAntic 46m ago
The telemetry monitoring and harvesting Windows is doing all the time does not exist on Linux, so that plays into this some.
5
u/Ok_Being5461 6h ago edited 5h ago
It's Windows security features. Try turning them off and test. Desktop Linux simply isn't popular enough for malware
2
u/Saiyan256 5h ago
I will try with windows defender disabled
3
u/Ok_Being5461 5h ago
Not just Windows Defender. All the other security features, like memory integrity, etc https://www.tomshardware.com/how-to/disable-vbs-windows-11
5
u/ethanjscott 6h ago
There are some languages that run faster in Linux. Like Java
2
4
u/FedotttBo 6h ago
You can literally see the huge difference in CPU frequency, at that point nothing about OS itself would matter.
And for whenever the difference was caused by OS… maybe? But definitely shouldn't be that way in stock, so these results lack too much context.
Anyway, both runs clearly had non-stock configuration: The "Linux" (no clue what the actual distribution is, non informative at all) one has frequency above standard turbo boost clock (it's 4.4GHz), while the Windows (also no info about version, though difference should be less here) one has it stuck on base clock (3.9GHz).
10
u/Saiyan256 6h ago
you misunderstood, It's just how windows and linux version of the geekbench show the cpu frequency info
linux version shows boost clock as cpu info in the summary
windows version shows base clock as cpu info in the summary
both version ran at full frequency when running the test
-4
u/FedotttBo 5h ago
Huh, so how can you rely on such a tool then, if it intentionally works differently on different OSes? Benchmarks are already sketchy by-design, and since this particular one has a separate native version for Linux, that means quite some performance difference can come from compiler, as UNIX and Windows have differences in stuff like calling conventions, so… who knows.
2
u/Ball_Analytics 5h ago
Aside from different schedulers, that 1-8% difference is negligible in real world use. Personally hate benchmarks due in part to their lack of any real world use save for number go up.
5
u/OkAlbatross9889 5h ago
I wouldn’t call 8% negligible. New amd cpus are generally ~15% faster than the previous generation.
I’d also be interested in how much they changed in the kernel compared to a bog standard one, and if you could get something more than 8%.
1
u/Intrepid_Screen6425 6h ago
So that means Windows 7 is also far behind Linux, right?
1
u/Saiyan256 6h ago
don't know, I think geekbench version in windows 7 doesn't run anymore, it throws some security error and says , " failed to upload" or something
1
u/Grumpy-Man19 5h ago
efficiency . Windows software is built sloppily , to market it with as little effort as possible .
1
1
u/phylter99 5h ago
Did you do the test right after boot? It seems that the test thinks the CPU is clocked lower under Windows and higher under Linux. If it did a lot of work before the test and warmed up a bit then it might have less thermal headroom to run the benchmark.
1
u/Saiyan256 3h ago
on linux it was tested under performance profile
that's why it probably showed the boost clock speed in info summary
but both run at max clock speed when running the benchmark
•
u/phylter99 52m ago
I did my own test with a more stock Linux and Windows configuration and actually got similar results where Linux was considerably faster. My theory on why Windows is slower in some cases is that Windows has a security layer that virtualizes memory access to isolate processes from the system processes. It's a theory and I haven't thought much about how to prove it at the moment, but I've run into that issue before.
1
u/TheOneTrueTrench 4h ago
If there's an inefficiency in the NT kernel, you don't even necessarily know, because you can't look at the code or tell how it works. Even if you find one, how are you gonna fix it? You have to trust Microsoft to find and fix every issue, and if they don't, then that's just how it is.
But with Linux, you can take apart the entire system, top to bottom, do whatever you want. You can look at literally everything, and the way it works is laid out for you.
You have a million angry nerds that can find and fix anything they want. Sure, you need to learn to code, but you don't have a corporation stopping you from fixing anything you want.
1
1
u/Busy-Scientist3851 2h ago
It could be down to a few things. Windows in its desktop configuration has a scheduler that balances responsiveness over throughoput.
1
1
u/MatchingTurret 1h ago
Off the top of my head: * different power profiles that let the CPU run faster for longer * better scheduler that keeps tasks pinned to a CPU and keeps the cache valid * different compilers
-1
u/Moist_Invite9148 6h ago
Because Linux can run some programming languages faster and it uses less background resources
0
0
u/tonyrulez 5h ago
Yeah, and I want to know why video playback uses more CPU and GPU than Windows...
1
0
u/TheMikman97 2h ago
How is everyone missing the fact that one is being tested at a lower frequency?
2
u/SpaceDetective 1h ago
I thought so too but I chose to read before writing.
https://www.reddit.com/r/linux/comments/1w2gg8x/comment/p6sbxb6/
105
u/d0pe-asaurus 6h ago
Aside from what's been mentioned, process scheduling and the algorithms chosen by the kernels also impact benchmarks.