Beispiel #1
0
    public static int Main(String[] args)
    {
        int length = args.Length == 0 ? 10 : Int32.Parse(args[0]);

        for (int i = 0; i < Iterations; i++)
        {
            pidigits p = new pidigits();
            p.Calculate(length, true);
        }
        return(100);
    }
Beispiel #2
0
    public static void Bench()
    {
        int length = 600;

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
            {
                for (int i = 0; i < Iterations; i++)
                {
                    pidigits p = new pidigits();
                    p.Calculate(length);
                }
            }
        }
    }
Beispiel #3
0
 public static void Bench()
 {
     int length = 600;
     foreach (var iteration in Benchmark.Iterations)
     {
         using (iteration.StartMeasurement())
         {
             for (int i = 0; i < Iterations; i++)
             {
                 pidigits p = new pidigits();
                 p.Calculate(length);
             }
         }
     }
 }
Beispiel #4
0
 public static int Main(String[] args)
 {
     int length = args.Length == 0 ? 10 : Int32.Parse(args[0]);
     for (int i = 0; i < Iterations; i++)
     {
         pidigits p = new pidigits();
         p.Calculate(length, true);
     }
     return 100;
 }