using KGySoft.Collections;
using KGySoft.Diagnostics;
public static void Main()
Console.WriteLine($".NET Core version: {Path.GetFileName(Path.GetDirectoryName(typeof(object).Assembly.Location))}");
private static void DoPerformanceTest()
var array = new int[height, width];
var array2d = new Array2D<int>(height, width);
new PerformanceTest{TestName = "AccessTest", CpuAffinity = null, Iterations = 1000, Repeat = 5}
for (int y = 0; y < height; y++)
for (int x = 0; x < width; x++)
for (int y = 0; y < height; y++)
for (int x = 0; x < width; x++)
}, "Array2D<int>[y, x] = value")
.DumpResults(Console.Out);