Exemplo n.º 1
0
    private static bool TestBase()
    {
        TreeInsert T      = new TreeInsert();
        bool       result = true;

        for (int i = 1; i <= Iterations; i++)
        {
            result &= T.Bench();
        }
        return(result);
    }
Exemplo n.º 2
0
    public static void Test()
    {
        TreeInsert T = new TreeInsert();

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
            {
                for (int i = 1; i <= Iterations; i++)
                {
                    T.Bench();
                }
            }
        }
    }
Exemplo n.º 3
0
 private static bool TestBase()
 {
     TreeInsert T = new TreeInsert();
     bool result = true;
     for (int i = 1; i <= Iterations; i++)
     {
         result &= T.Bench();
     }
     return result;
 }
Exemplo n.º 4
0
 public static void Test()
 {
     TreeInsert T = new TreeInsert();
     foreach (var iteration in Benchmark.Iterations)
     {
         using (iteration.StartMeasurement())
         {
             for (int i = 1; i <= Iterations; i++)
             {
                 T.Bench();
             }
         }
     }
 }