private static void RunLocalRabbitMqLoadTest() { var stopWatch = new StopWatch(); using (var test = new RabbitMQLoadTest()) { test.Run(stopWatch); } Console.WriteLine("RabbitMQ Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); }
static void RunLocalActiveMqLoadTest() { var stopWatch = new StopWatch(); using (var test = new ActiveMQLoadTest()) { test.Run(stopWatch); } Console.WriteLine("ActiveMQ Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); }
static void RunLocalMsmqLoadTest() { Console.WriteLine("Starting Local MSMQ Load Test"); var stopWatch = new StopWatch(); using (var test = new LocalLoadTest()) { test.Run(stopWatch); } Console.WriteLine("Local MSMQ Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); }
private static void RunBatchLoadTest() { Console.WriteLine("Starting Local MSMQ Batch Load Test"); StopWatch stopWatch = new StopWatch(); using (BatchLoadTest test = new BatchLoadTest()) { test.Run(stopWatch); } Console.WriteLine("Batch Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); }
static void RunRabbitMqLoadTest() { try { var stopWatch = new StopWatch(); using (var test = new RabbitMqHandlerLoadTest()) { test.Run(stopWatch); } Console.WriteLine("RabbitMQ Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); } catch (Exception ex) { Console.WriteLine("Unable to run RabbitMQ Load Test: " + ex); Console.WriteLine("If RabbitMQ is not installed, this is normal"); } }
static void RunStructureMapLoadTest() { Console.WriteLine("Starting StructureMap Load Test"); var stopWatch = new StopWatch(); using (var test = new StructureMapConsumerLoadTest()) { test.Run(stopWatch); } Console.WriteLine("StructureMap Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); }
static void RunCorrelatedMessageTest() { Console.WriteLine("Starting Local MSMQ Correlated Load Test"); var stopWatch = new StopWatch(); using (var test = new CorrelatedMessageTest()) { test.Run(stopWatch); } Console.WriteLine("Correlated Message Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); }
static void RunTransactionLoadTest() { Console.WriteLine("Starting Local MSMQ Transactional Load Test"); var stopWatch = new StopWatch(); using (var test = new TransactionLoadTest()) { test.Run(stopWatch); } Console.WriteLine("Transaction Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); }
private static void RunWcfLoadTest() { Console.WriteLine("Starting Local WCF Load Test"); StopWatch stopWatch = new StopWatch(); using (WcfLoadTest test = new WcfLoadTest()) { test.Run(stopWatch); } Console.WriteLine("WCF Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); }
private static void RunLoopbackLoadTest() { Console.WriteLine("Starting Local Loopback Load Test"); StopWatch stopWatch = new StopWatch(); using (LoopbackLoadTest test = new LoopbackLoadTest()) { test.Run(stopWatch); } Console.WriteLine("Loopback Load Test: "); Console.WriteLine(stopWatch.ToString()); Console.WriteLine(); }
static void RunLongRunningMemoryTest() { var stopWatch = new StopWatch(); using (var test = new LongRunningMemoryTest()) { test.Run(stopWatch); stopWatch.Stop(); } Console.WriteLine("Long Running Memory Test: {0}", stopWatch); }