Benchmarking library used in c #

I want to conduct test tests on several servers that I manage, and would like to be able to customize my own scripts and event order / automation.

So, I am wondering if there are any libraries that can be used to benchmark various aspects of a Windows computer, such as CPU, Disk IO, and RAM.

Update 1 : Since there are no libraries available for this, I also agree to the answers to examples or tutorials on how you can check the performance of the processor, disk and memory using C #.

Update 2 Are there any good libraries for this in any language?

+7
source share
2 answers

You can use this open source BenchmarkDotNet infrastructure to test processor performance. It includes a stopwatch, using the GC preliminary call, warm-up, setting the process priority, thred, the ProcessorAffinity mask, api for conducting tests and a good output of the console with the results.

+3
source

It might be out of scope, however, I was looking for something similar at the unit test level and found this MSDN topic about creating and editing load tests .

+1
source

All Articles