You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Simon Wallis <ma...@wallis.ca> on 2004/10/20 23:35:57 UTC

Performance of buffered vs. non-buffered logging

I've been running some performance tests today on using the log4net ADONetAppender. I have a simple ASP.NET page that does one log request, and I'm using ACT to hit this page with 50, 100, 150, 200, 300 and 400 users with a 5-10 second random delay between each request.

I did one set of tests with a bufferSize of 1 and another set of tests with a bufferSize of 50. Surprisingly the first set of tests outperformed (albeit just marginally) the set with bufferSize of 50. The database is not local, it is on the network, so I would have expected the buffered tests to greatly outperform the non-buffered.

Any comments on this? It seems strange.

Simon.