Hi guys,
I am doing some perf testing for RQ.
I managed to improve perf by about 40%, which is good, but currently I am
focusing on this scenario:
private static void AddData(IQueueManager manager, byte[] bytes)
{
var sp = Stopwatch.StartNew();
for (int i = 0; i < 10000; i++)
{
using (var tx = new TransactionScope())
{
manager.Send(new Uri("rhino.queues://localhost:2222/test1"), new
MessagePayload
{
Data = bytes
});
if (i % 10 == 0)
Console.WriteLine(i);
tx.Complete();
}
}
Console.WriteLine("{0:#,#}", sp.ElapsedMilliseconds);
}
This takes about 2.7 minutes to run right now.
Profiling this shows over 40% of the time spent in
system.transaction.transaction.dispose.
I am not sure how to approach fixing this.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---