Logging shouldn’t be an afterthought. It should be fast, structured, and governed—without slowing your app down.

Meet CerbiStream, a developer-first logging library built with governance and performance at its core. But how does it actually perform compared to industry staples like Serilog, NLog, and Log4Net?

That’s what CerbiStream.BenchmarkTests was created to answer.


🔬 What’s Inside?

This open-source benchmark suite uses BenchmarkDotNet to give you real, comparable results across popular logging frameworks.

It includes:

  • 🔁 Throughput tests — logging 10k+ entries per run
  • 💾 Memory benchmarks — allocations, GC behavior, per-log overhead
  • 🧱 Payload scenarios — from flat logs to nested structured objects
  • Governance enforcement — CerbiStream uniquely validates required & forbidden fields

All test outputs are saved under the charts/ folder and are easy to extend. Want to add your own logger? Just plug it in.


📈 Sample Benchmark: Logs/sec

Logger Logs/sec (Structured) Memory/Log Governance?
CerbiStream 🟢 82,000+ ~128 B ✅ Full support
NLog 🔵 84,000 ~120 B
Serilog 🟡 80,000 ~146 B ⚠️ Plugin only
Log4Net 🟠 60,000 ~160 B

✅ CerbiStream is the only logger with compile-time analyzers and runtime validation for governance rules.

More detailed charts → View Benchmarks


⚡ What Makes CerbiStream Different?

builder.Logging.AddCerbiStream(options =>
{
    options.UseGovernanceFromJson("Configs/governance.json");
});