What's the best way to benchmark programs in Windows?

后端 未结 6 1716
我寻月下人不归
我寻月下人不归 2020-12-09 06:54

I need to do some performance benchmarks on .NET programs (C#) in Windows, but I haven\'t done benchmarking much in the Windows world. I\'ve looked into using the Windows 2

6条回答
  •  我在风中等你
    2020-12-09 07:12

    If you want just some quick numbers, you can use Powershell to time overall execution. Use the measure-command cmdlet. It's roughly equivalent to "time" in Unix.

    > measure-command { your.exe arg1 }
    
    Days              : 0
    Hours             : 0
    Minutes           : 0
    Seconds           : 4
    Milliseconds      : 996
    Ticks             : 49963029
    TotalDays         : 5.78275798611111E-05
    TotalHours        : 0.00138786191666667
    TotalMinutes      : 0.083271715
    TotalSeconds      : 4.9963029
    TotalMilliseconds : 4996.3029
    

提交回复
热议问题