Thursday, October 26, 2006

NMock

NMock is a dynamic mock object library for .NET. Mock objects make it easier to test single components—often single classes—without relying on real implementations of all of the other components. This means we can test just one class, rather than a whole tree of objects, and can pinpoint bugs much more clearly.
Home page

Comparison of logging services.

We have lead comparison 3 popular services:
Microsoft Enterprise Library
Log4net
Syslog


The scenario of the test:
1. Reading of a line from a DB.
2. Record of a line in a DB.

Here results on 500 inquiries:

Log4NetEnerprise LibrarySyslog
Concurrency Level252525
Time taken for tests1.617758 seconds1.794552 seconds1.270281 seconds
Complete requests500500500
Failed requests000
Write errors000
Total transferred566968 bytes701000 bytes695000 bytes
Requests per second309.07 [#/sec] (mean)278.62 [#/sec] (mean)393.61 [#/sec] (mean)
Time per request80.888 [ms] (mean)89.728 [ms] (mean)63.514 [ms] (mean)
Time per request(mean, across all
concurrent requests)
3.236 [ms] 3.589 [ms] 2.541 [ms]
Transfer rate341.83 Kbytes/sec] 381.15 [Kbytes/sec]533.74 [Kbytes/sec]