public void StructTimeTest(int size = CaseSize) { Console.WriteLine(nameof(StructTimeTest)); var buffer = Vector2S.CreateN(size).ToList(); MeasureTime(() => buffer.Average(v => v.X + v.Y)); }
public void StructMemoryTest(int size = CaseSize) { Console.WriteLine(nameof(StructMemoryTest)); var buffer = Vector2S.CreateN(size).ToList(); Console.WriteLine($"Memory: {GetCurrentProcessMemoryMb()} MB, size = {buffer.Count}."); }
public void StructGenerateTimeTest(int size = CaseSize) { Console.WriteLine(nameof(StructGenerateTimeTest)); MeasureTime(() => Vector2S.CreateN(size).ToList()); }