Пример #1
0
    public void BenchAssignRectangular()
    {
        AssignStruct t = new AssignRect();

        t.numarrays = 10;
        t.adjust    = 1;

        for (int i = 0; i < AssignRectangularIterations; i++)
        {
            t.Run();
        }
    }
Пример #2
0
    public static void BenchAssignRectangular()
    {
        Setup();
        AssignStruct t = new AssignRect();

        t.numarrays = 10;
        t.adjust    = 1;

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
            {
                for (int i = 0; i < AssignRectangularIterations; i++)
                {
                    t.Run();
                }
            }
        }
    }
Пример #3
0
    public static void BenchAssignRectangular()
    {
        Setup();
        AssignStruct t = new AssignRect();
        t.numarrays = 1000;
        t.adjust = 0;

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
            {
                for (int i = 0; i < AssignRectangularIterations; i++) 
                {
                    t.Run();
                }
            }
        }
    }