Esempio n. 1
0
        public void ClassTimeTest(int size = CaseSize)
        {
            Console.WriteLine(nameof(ClassTimeTest));
            var buffer = Vector2C.CreateN(size).ToList();

            MeasureTime(() => buffer.Average(v => v.X + v.Y));
        }
Esempio n. 2
0
        public void ClassMemoryTest(int size = CaseSize)
        {
            Console.WriteLine(nameof(ClassMemoryTest));
            var buffer = Vector2C.CreateN(size).ToList();

            Console.WriteLine($"Memory: {GetCurrentProcessMemoryMb()} MB, size = {buffer.Count}.");
        }
Esempio n. 3
0
 public void ClassGenerateTimeTest(int size = CaseSize)
 {
     Console.WriteLine(nameof(ClassGenerateTimeTest));
     MeasureTime(() => Vector2C.CreateN(size).ToList());
 }