Пример #1
0
        static bool Bench()
        {
            Mandelbrot m       = new Mandelbrot();
            Julia      j       = new Julia(-0.62, 0.41);
            double     mResult = m.Render();
            double     jResult = j.Render();

            return(true);
        }
Пример #2
0
        public double Test()
        {
            Mandelbrot m       = new Mandelbrot();
            Julia      j       = new Julia(-0.62, 0.41);
            double     mResult = m.Render();
            double     jResult = j.Render();

            return(mResult + jResult);
        }
Пример #3
0
        public static void Main()
        {
            Mandelbrot m = new Mandelbrot();
            Julia      j = new Julia(-0.62, 0.41);
            // DateTime begin = DateTime.Now;
            double mres = m.Render();
            double jres = j.Render();

            // DateTime end = DateTime.Now;
            // Console.Write("Mandelbrot:{0} Julia:{1} takes {2} ms", mres, jres, (end - begin).TotalMilliseconds);
            Console.Write("Mandelbrot:");
            Console.Write(mres);
            Console.Write(" Julia:");
            Console.Write(jres);
            // Don't print the amount of milliseconds, because adding this type
            // of nondeterminism makes it hard to verify the program's
            // correctness by its output.
            //     Console.Write(" takes ");
            //     Console.Write((end - begin).TotalMilliseconds);
            //     Console.Write(" ms");
            Console.WriteLine();
        }
Пример #4
0
        static bool Bench()
        {
            Mandelbrot m = new Mandelbrot();
            Julia j = new Julia(-0.62, 0.41);
            double mResult = m.Render();
            double jResult = j.Render();

            return true;
        }