Performance - System Diagnostics vs Enterprise Logging Block

Topics: Logging Application Block
Jan 6, 2015 at 11:31 AM
Edited Jan 6, 2015 at 11:32 AM
I recently had a project to move tracing for an application from System Diagnostics (.Net 4.5) tracing to Enterprise Library Logging (v6)

Trace -
Enterprise Library v6 -

However when I bench marked the time taken to write 100, 000 messages I was quite surprised by the result

System Diagnostics ~2s
Enterprise Library ~12s

When I moved the Enterprise Library to async (see, the performance was even worse at around 3 minutes.

I have sample code that can be made available

Any suggestions on how or if I can improve the performance of the Enterprise Library?

Many thanks - Vince
Jan 7, 2015 at 5:41 PM
An update
I write a simple log formatter and found that the speed of Enterprise Library increased to take ~4s instead of 12s
So beware of what formatter you use for the Enterpise Library