当前位置: 首页 > 编程语言 > C#

为什么64位比32位更快?分享

时间:2023-04-11 01:40:08 C#

undefinedprivatestaticlongForSumArray(long[]array){varresult=0L;对于(vari=0L;iForSumArray2(array)));Console.WriteLine("Iter:{0}",AverageRunTime(repeat,()=>IterSumArray(array)));privatestaticTimeSpanAverageRunTime(intcount,Actionmethod){varstopwatch=newStopwatch();秒表.Start();for(vari=0;i