示例#1
0
        public void StructTimeTest(int size = CaseSize)
        {
            Console.WriteLine(nameof(StructTimeTest));
            var buffer = Vector2S.CreateN(size).ToList();

            MeasureTime(() => buffer.Average(v => v.X + v.Y));
        }
示例#2
0
        public void StructMemoryTest(int size = CaseSize)
        {
            Console.WriteLine(nameof(StructMemoryTest));
            var buffer = Vector2S.CreateN(size).ToList();

            Console.WriteLine($"Memory: {GetCurrentProcessMemoryMb()} MB, size = {buffer.Count}.");
        }
示例#3
0
 public void StructGenerateTimeTest(int size = CaseSize)
 {
     Console.WriteLine(nameof(StructGenerateTimeTest));
     MeasureTime(() => Vector2S.CreateN(size).ToList());
 }