Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Benchmarking library usable from C#

I am wanting to conduct benchmark tests on a couple of servers that I manage and would like to be able to set up my own scenarios and order of events/ automation.

So I'm wondering if there are any libraries that can be used to perform benchmarking of different aspects of a windows computer such as CPU, Disk IO, and RAM.

Update 1: Since there seems to be no available libraries for doing this I'll also accept answers pointing to examples or guides of how one can test CPU, Disk and Memory performance with C#.

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

like image 302
JensB Avatar asked Aug 15 '12 15:08

JensB


2 Answers

You can use this open-source framework BenchmarkDotNet for CPU benchmarking. It include Stopwatch using, GC pre-call, warmup, set priority of process, thred, ProcessorAffinity-mask, api for benchmark competitions and nice console output with results.

like image 193
AndreyAkinshin Avatar answered Oct 02 '22 16:10

AndreyAkinshin


This might be outside the scope, however I was looking for something similar at the unit test level and found this MSDN topic about Creating and Editing Load Tests.

like image 31
Ryan M. Avatar answered Oct 02 '22 18:10

Ryan M.