Using the code below sending two messages per transaction within 10,000
separate transactions runs in 14 seconds. I'm not sure what else you were
suggesting, unless you were wanting to see if the transaction was promoted
to DTC what the performance looked like then? This sample would still not
have been promoted to DTC though if that was your goal.

[Fact]
        public void PerfTest()
        {
            var sp = Stopwatch.StartNew();

            for (int i = 0; i < 10000; i++)
            {
                using (var tx = new TransactionScope())
                {
                    queueManager.Send(queueUri, queueUri,
                                   new MessageEnvelope
                                   {
                                       Data =
Encoding.Unicode.GetBytes("hello"),
                                   });

                    queueManager.Send(queueUri, queueUri,
                                   new MessageEnvelope
                                   {
                                       Data =
Encoding.Unicode.GetBytes("hello2"),
                                   });


                    if (i % 10 == 0)
                        Console.WriteLine(i);
                    tx.Complete();
                }
            }

            Console.WriteLine("{0:#,#}", sp.ElapsedMilliseconds);


        }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to