コード例 #1
0
ファイル: Program.cs プロジェクト: dharnitski/BasicVsWs
        private static void WarmUpService(string endpointConfigurationName)
        {
            Console.WriteLine("Running test for configuration '{0}'", endpointConfigurationName);

            var meter = new PerformanceMeter(endpointConfigurationName);
            var testResult = meter.Run(1, meter.RunAllCallsInSeparateContext);

            Console.WriteLine(testResult.ToString());
            Console.WriteLine();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: dharnitski/BasicVsWs
        private static void RunTestForOneEndpoint(string endpointConfigurationName)
        {
            Console.WriteLine("Running test for configuration '{0}'", endpointConfigurationName);

            var meter = new PerformanceMeter(endpointConfigurationName);
            var testResult = meter.Run(runCount, meter.RunAllCallsInOneContext);
            Console.WriteLine(testResult.ToString());
            testResult = meter.Run(runCount, meter.RunAllCallsInSeparateContext);
            Console.WriteLine(testResult.ToString());
            Console.WriteLine();
        }