예제 #1
0
        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
        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();
        }