Will .NET Framework 4 Slow Down My Computer?
Everybody runs applications on their Windows computer and there is a wealth of software out there to choose from. More and more software these days relies on the Microsoft .NET Framework because it makes things easier for programmers by including code and libraries which would otherwise need developing manually. While this is mostly a good thing and enables for faster and more efficient creation of software, it does also mean the .NET Framework needs to be installed on your computer for you to be able to run the software.
A major complaint about .NET over the years has been that it’s unnecessarily huge and bloated and slows down your computer. There are multiple versions of .NET, the latest is 4.6.x and if you want to run some of the latest applications you will sooner or later need it on your system. Windows 10 is pre-installed with .NET 4.6, but Windows 8 ships with 4.5 and Windows 7 comes with 3.5. A popular program like Paint.NET won’t work in Windows without installing .NET 4.6.1 first.
If you believe what some people tell you on the internet, installing .NET 4 on your Windows computer will slow it down by a huge amount, but is that really the case? To find out, we’ve run some tests on a system with and without .NET Framework 4.6 installed to see if there are any differences in performance.
The tests were run on a Windows 7 Professional 64-bit computer with an AMD Phenom II X4 955 CPU @3.2GHz, 4GB of DDR3 1333Mhz and a WD 7200RPM HDD. Windows is fully up to date (excluding .NET) while updates and any scheduled tasks were turned off, the version of .NET Framework used was 4.6.1.Windows Registry Key Count and Size
The Windows registry is obviously an integral part of the operating system and if .NET adds too many entries into the registry it could have a negative effect on general performance. To see what .NET 4 adds to the registry we looked at how many registry keys and data values are created with Registry Browser.
.NET 4.6 adds around 2,700 new keys to a clean registry and 5,700 new data values, that’s roughly a 1% increase. It’s a sizable amount but shouldn’t have any adverse affects on the system as something like Office adds several times that. Next let’s look at overall registry size, the size of the core registry files was checked with an old Microsoft tool called DuReg..
As you can see, the overall size of the registry increased by around 0.8MB after .NET was installed, which isn’t a massive amount and shouldn’t make any difference to general Windows performance.
Windows Boot Time
To see if the extra files, larger registry and startup services have any effect on the speed at which the system boots, we measured the boot time of our system. The system was rebooted 5 times with and 5 times without .NET taking the average from each. Windows Event Viewer was used to record the boot times.
There was a difference of 1.7 seconds so it did appear to slow boot performance by about 5% with .NET installed. This could just about be within acceptable tolerance levels and other test runs could reveal slightly different or closer results. However, the numbers in this test say .NET will add as much as a second or two to your Windows boot time.
PCMark Vantage
Futuremark’s PCMark suite is the number one test suite when you want to get overall performance of a system, and useful to see if .NET has any noticeable impact on our system. PCMark tests performance for gaming, music, productivity, video, HDD and communications. We used PCMark Vantage and not later versions because they all require .NET 4 to function, so a without test would be impossible. The standard PCMark Suite test was run that is available in the free version.
Rather weirdly the PCMark score with .NET installed is slightly higher than without, which is the reverse of what you’d expect. Like other scores this is within acceptable tolerance levels meaning it’s too close for a conclusive result.
PCWorld WorldBench 6
This benchmark suite was developed several years ago by website PCWorld to measure the performance of systems they had on test. Although it’s no longer publicly available we purchased a copy of WorldBench 6 when it was. Through scripting Worldbench runs a series of real world tests using a number of applications including Photoshop, 3DS Max, Firefox, Nero, Office and WinZip.
Whether .NET is installed or not makes no difference whatsoever in this testing suite, the score is exactly the same. Although the software used in the suite is getting old, it’s still a good test to see if .NET causes any slowdowns in general computing tasks, which it doesn’t here.
A Note About The .NET Framework Optimization Service
This is a Windows Service that gets installed along with .NET and it runs optimization routines on the .NET libraries whenever the framework gets an update. It happens when you first install a new version of .NET or when patches have been applied through Windows update. Mscorsvw.exe will appear in Task Manager when optimization is taking place.
Although the mscorsvw.exe process runs in the background it can take up CPU cycles while the service is running. This should only be for a few minutes at the most and the only time under normal circumstances that .NET is supposed to slow down your computer. When you do get issues with .NET this is one of the first things that causes a slowdown and unnecessarily high CPU usage.
Will .NET Framework 4 Slow Down My Computer?
From looking at the test results we have to conclude that installing Microsoft .NET Framework 4.6 will not slow down your Windows computer to any great degree. It does add thousands of registry keys, a service and hundreds of Megabytes to your system drive, but under normal running conditions the only major slow down you might notice is just after installing or updating and the optimization service kicks in for a few minutes.
Apart from a possible slight increase in boot time, the .NET Framework itself will not slow things down due to its size or integration into the system. Of course, if the installation is faulty or has become corrupted in some way, then you might encounter issues. Repairing or removing .NET if there are problems will hopefully fix them but you can rest a little easier knowing that a correctly functioning .NET will not adversely your computer’s performance.
I use Delphi and it builds native windows applications, no framework on the client machine nessesary. All the productivity of visual studio was taken from Delphi, so developers are really in the dark if they use .Net for productivity.
One thing missing from your benchmark is launching time of .net programs. I suspect that the number of files required to run a .net program causes too much disk head movement which is like having severe fragmentation.
Interesting compare, two things missing (my opinion), you compared registry entries, but it would be insteresting to see amount of files and total disk space used by the NET 4 installation and also the amount of memory used by NET 4 core (without any NET 4 user’s app started of course only a fresh Windows start and see if you see something different).
Thanks for the input, the number of files and disk space used by .NET is never going to cause a system slowdown (unless you have just filled the HDD up) so there isn’t really a great deal of point in testing for that.
As far as I know the only memory used by .NET in the background is when the optimization service is running after first install or an update. When that isn’t running I’m not sure there would be any difference because there are no processes or services running. A worthwhile test would perhaps be to test the same application made with and without the .NET requirement, although I’m not sure such a program exists.
I have personally seen .net framework 4 slow down an entire company due to needing it for an application. Have you tested with installing the client and extended on the same machine? I would be very interested to see the results from that test.
thanks man..
i just install my framework 4 after i read yout article.. nice
Thanks so much,helped me to stop worrying.
Thanks Ray…. this is true… still many says anti about windows….
i agree @corno, very interesting test. i would like to see more tests like this one
Thanks Ray I have often wondered this myself, but being totally lacking in the technical knowhow and expertise to do this myself I am personally very gratefull that you have taken the extended time of two whole days to wipe that fear away for me.
Yours respectfully
Starlight
Even if .net slows down your PC but if you know how to get the best result out of it you’ll know that slower means better!!!!!!!!!!!
Thanks, Ray, useful post.
Excellent , Ray
Once I had updated my xp sp3 and many programs that depend on .Net Framework
began to crash suddenly, I uninstalled all of .net framework editions and installed again , and I had the same problem