7

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?

4

2 回答 2

3

您可以使用这个开源框架BenchmarkDotNet进行 CPU 基准测试。它包括秒表使用、GC 预调用、预热、设置进程优先级、thred、ProcessorAffinity-mask、用于基准竞赛的 api 和带有结果的漂亮控制台输出。

于 2013-09-16T21:53:24.090 回答
1

这可能超出了范围,但是我在单元测试级别寻找类似的东西,并找到了这个关于创建和编辑负载测试的 MSDN 主题

于 2012-08-15T18:54:43.647 回答