示例#1
0
        public static int Main(string[] args)
        {
            var  r      = new RayTracerBench();
            bool result = r.Run();

            return(result ? 100 : -1);
        }
示例#2
0
        public static int Main(string[] args)
        {
            var r = new RayTracerBench();

            r.RenderOneTo("./pic.ppm", false);
            return(0);
        }
示例#3
0
        public static void Bench()
        {
            var m = new RayTracerBench();

            foreach (var iteration in Benchmark.Iterations)
            {
                using (iteration.StartMeasurement())
                {
                    m.RenderBench();
                }
            }
        }
示例#4
0
 public static int Main(string[] args)
 {
     var r = new RayTracerBench();
     bool result = r.Run();
     return (result ? 100 : -1);
 }
示例#5
0
 public static void Bench()
 {
     var m = new RayTracerBench();
     foreach (var iteration in Benchmark.Iterations)
     {
         using (iteration.StartMeasurement())
         {
             m.RenderBench();
         }
     }
 }