Exemplo 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));
        }
Exemplo 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}.");
        }
Exemplo n.º 3
0
 public void ClassGenerateTimeTest(int size = CaseSize)
 {
     Console.WriteLine(nameof(ClassGenerateTimeTest));
     MeasureTime(() => Vector2C.CreateN(size).ToList());
 }