コード例 #1
0
ファイル: Program.cs プロジェクト: FionaQi/MyOJSolutions
 static void Main(string[] args)
 {
     APRuntime.Initialize("HydraBenchmark.ini");
     string[] fileNameSet = Directory.GetFiles(configFilePath);
     StreamConfig streams = new StreamConfig(10000, 10);
     foreach (string x in fileNameSet)
     {
         string[] sp = x.Split(testConfig.configFileSeparator);
         if (sp.Length < 2 || sp[1] != testConfig.configFileSuffix) continue;
         AutoTest test = new AutoTest(streams, x, totalTestTime, recordInterval);
         Console.WriteLine("[Config Start]: {0}", x);
         test.Run(TestRunMode.SingleThread, configFilePath);
         //test.Run(TestRunMode.Parrallel);
     }
     return;
 }
コード例 #2
0
        static void Main(string[] args)
        {
            APRuntime.Initialize("HydraBenchmark.ini");
            string[]     fileNameSet = Directory.GetFiles(configFilePath);
            StreamConfig streams     = new StreamConfig(10000, 10);

            foreach (string x in fileNameSet)
            {
                string[] sp = x.Split(testConfig.configFileSeparator);
                if (sp.Length < 2 || sp[1] != testConfig.configFileSuffix)
                {
                    continue;
                }
                AutoTest test = new AutoTest(streams, x, totalTestTime, recordInterval);
                Console.WriteLine("[Config Start]: {0}", x);
                test.Run(TestRunMode.SingleThread, configFilePath);
                //test.Run(TestRunMode.Parrallel);
            }
            return;
        }