Logging performance comparison between Serilog and NLog.
- Windows 10 Enterprise 64-bit (Build 18363)
- Microsoft Visual Studio Enterprise 2019 16.8.4
- .NET 5
- Platform target: 64bit
- Intel Core i7 8665U @ 1.90GHz
- 16GB DDR4-2667 (1333 MHz)
- Seagate FireCuda 520 SSD 1TB
Write target: File
Test input count: 1000000
Producer: 1
Generated 1000000 values in 4541ms (throughput = 220180,668 ops per second)
Mean latency = 4,500mcs
99% observations less than = 10,100mcs
99.99% observations less than = 6068,900mcs
- 1,800 - 2,6300 = 453451
- 2,630 - 3,4600 = 443718
- 3,460 - 4,2900 = 64609
- 4,290 - 5,1200 = 10908
- 5,120 - 5,9500 = 3786
- 5,950 - 6,7800 = 3105
- 6,780 - 7,6100 = 2710
- 7,610 - 8,4400 = 1313
- 8,440 - 9,2700 = 1226
- 9,270 - 10,1000 = 5529
Generated 1000000 values in 2532ms (throughput = 394849,270 ops per second)
Mean latency = 2,483mcs
99% observations less than = 3,000mcs
99.99% observations less than = 2006,100mcs
- 1,100 - 1,2900 = 229206
- 1,290 - 1,4800 = 610634
- 1,480 - 1,6700 = 4284
- 1,670 - 1,8600 = 31350
- 1,860 - 2,0500 = 62533
- 2,050 - 2,2400 = 32473
- 2,240 - 2,4300 = 10990
- 2,430 - 2,6200 = 4577
- 2,620 - 2,8100 = 2385
- 2,810 - 3,0000 = 2084
Write target: File
Test input count: 5000000
Producer: 1
Generated 5000000 values in 21804ms (throughput = 229308,208 ops per second)
Mean latency = 4,322mcs
99% observations less than = 10,300mcs
99.99% observations less than = 6132,500mcs
- 1,900 - 2,7400 = 3352251
- 2,740 - 3,5800 = 1196751
- 3,580 - 4,4200 = 283497
- 4,420 - 5,2600 = 38472
- 5,260 - 6,1000 = 16407
- 6,100 - 6,9400 = 15284
- 6,940 - 7,7800 = 8545
- 7,780 - 8,6200 = 4784
- 8,620 - 9,4600 = 7933
- 9,460 - 10,3000 = 31267
Generated 5000000 values in 12230ms (throughput = 408807,710 ops per second)
Mean latency = 2,397mcs
99% observations less than = 2,600mcs
99.99% observations less than = 1938,000mcs
- 1,100 - 1,2500 = 1290664
- 1,250 - 1,4000 = 3163826
- 1,400 - 1,5500 = 9390
- 1,550 - 1,7000 = 17602
- 1,700 - 1,8500 = 29994
- 1,850 - 2,0000 = 223645
- 2,000 - 2,1500 = 245122
- 2,150 - 2,3000 = 76199
- 2,300 - 2,4500 = 39976
- 2,450 - 2,6000 = 12144