Exemplo n.º 1
0
    public void BenchStringSort()
    {
        StringSort t = new StringSort();

        t.numarrays = 40;
        t.adjust    = 1;

        for (int i = 0; i < StringSortIterations; i++)
        {
            t.Run();
        }
    }
Exemplo n.º 2
0
    public static void BenchStringSort()
    {
        Setup();
        StringSort t = new StringSort();

        t.numarrays = 40;
        t.adjust    = 1;

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
            {
                for (int i = 0; i < StringSortIterations; i++)
                {
                    t.Run();
                }
            }
        }
    }
Exemplo n.º 3
0
    public static void BenchStringSort()
    {
        Setup();
        StringSort t = new StringSort();
        t.numarrays = 1000;
        t.adjust = 0;

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