예제 #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);
    }
예제 #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);
                }
            }
        }
    }
예제 #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);
             }
         }
     }
 }
예제 #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;
 }