Performance Benchmarks
CerbiStream 1.1.88 vs Serilog, NLog, log4net, MS Logging on .NET 9
Independent benchmarks prove CerbiStream matches industry-standard loggers on plain logging while delivering 4x faster encryption and 8x faster PII redaction—with governance features competitors don't have.
The Bottom Line
No performance penalty for choosing CerbiStream
Built-in encryption with zero overhead
Native redaction vs custom middleware
Roslyn analyzers catch issues at build time
All loggers perform similarly for basic structured logging. CerbiStream adds governance capabilities without adding overhead.
Verdict: CerbiStream matches industry-standard loggers. You get governance for free.
| Logger | Mean (ns) | Allocated | Ratio |
|---|---|---|---|
| NLog | 63.99 | 56 B | 0.95x |
| Serilog | 65.18 | 56 B | 0.96x |
| CerbiStream | 66.24 | 56 B | 1.00x |
| MS Logging | 67.68 | 56 B | 1.02x |
| log4net | 67.76 | 56 B | 1.02x |
Feature Availability
CerbiStream provides governance features that don't exist in other logging libraries.
| Feature | CerbiStream | Serilog | NLog | log4net | MS Logging |
|---|---|---|---|---|---|
| Structured Logging | |||||
| Async Sinks | |||||
| Built-in Encryption | |||||
| PII Auto-Redaction | |||||
| Schema Validation | |||||
| Governance Profiles (JSON) | |||||
| Design-Time Analyzers | |||||
| Required/Forbidden Fields | |||||
| Governance Scoring |
6 governance features that competitors simply don't have. No plugins. No custom code. Built-in.
git clone https://github.com/Zeroshi/CerbiStream.BenchmarkTests cd CerbiStream.BenchmarkTests dotnet run -c Release --project Cerbi-Benchmark-Tests/Cerbi-Benchmark-Tests.csproj
Results appear in BenchmarkDotNet.Artifacts/results/
Ready to govern your logs?
Start with CerbiStream in under 60 seconds, or explore the benchmark repository.
CerbiStream + analyzers free on NuGet | CerbiShield licensed by governed apps