public static void Main()
Random rand = new Random();
int[] intArray = new int[1024];
byte[] byteArray = new byte[1024];
for(int i = 0; i < 1024; i++)
intArray[i] = rand.Next(255);
byteArray[i] = (byte)rand.Next(255);
long time1 = DateTimeOffset.Now.ToUnixTimeMilliseconds();
for(int j = 0; j < 1000000; j++)
for(int i = 0; i < 1023; i++)
byteArray[i] += byteArray[i+1];
Console.WriteLine("time " + (DateTimeOffset.Now.ToUnixTimeMilliseconds() - time1).ToString("G9"));
time1 = DateTimeOffset.Now.ToUnixTimeMilliseconds();
for(int j = 0; j < 1000000; j++)
for(int i = 0; i < 1023; i++)
intArray[i] += intArray[i+1];
Console.WriteLine("time " + (DateTimeOffset.Now.ToUnixTimeMilliseconds() - time1).ToString("G9"));