Exemplo n.º 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);
        }
Exemplo n.º 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);
                    }
                }
            }
        }
Exemplo n.º 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);
             }
         }
     }
 }
Exemplo n.º 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;
 }