예제 #1
0
파일: Program.cs 프로젝트: zhangaz1/IronJS
        static void Main(string[] args)
        {
            System.Threading.Thread.CurrentThread.Priority =
                System.Threading.ThreadPriority.Highest;

            var basePath = new DirectoryInfo(GetExecutableDirectory()).Parent.Parent.FullName;

#if !DISABLE_QUESTIONS
            if (ReadYesOrNo("Run SunSpider 0.9.1 benchmark, yes/no? "))
            {
#endif
            TestSuite sunSpider = new SunSpiderTestSuite(basePath);
            sunSpider.Run();
#if !DISABLE_QUESTIONS
        }
#endif

#if !DISABLE_QUESTIONS
            if (ReadYesOrNo("Run V8 Benchmark v6, yes/no? "))
            {
#endif
            TestSuite v8Benchmark = new V8BenchMarkTestSuite(basePath);
            v8Benchmark.Run();

#if !DISABLE_QUESTIONS
        }
#endif

#if !DISABLE_QUESTIONS
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey(true);
#endif
        }
예제 #2
0
파일: Program.cs 프로젝트: RainsSoft/IronJS
        static void Main(string[] args)
        {
            System.Threading.Thread.CurrentThread.Priority =
                System.Threading.ThreadPriority.Highest;

            var basePath = new DirectoryInfo(GetExecutableDirectory()).Parent.Parent.FullName;

            #if !DISABLE_QUESTIONS
            if (ReadYesOrNo("Run SunSpider 0.9.1 benchmark, yes/no? "))
            {
            #endif
                TestSuite sunSpider = new SunSpiderTestSuite(basePath);
                sunSpider.Run();
            #if !DISABLE_QUESTIONS
            }
            #endif

            #if !DISABLE_QUESTIONS
            if (ReadYesOrNo("Run V8 Benchmark v6, yes/no? "))
            {
            #endif
                TestSuite v8Benchmark = new V8BenchMarkTestSuite(basePath);
                v8Benchmark.Run();

            #if !DISABLE_QUESTIONS
            }
            #endif

            #if !DISABLE_QUESTIONS
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey(true);
            #endif
        }