This is a separate Go module containing performance benchmarks that compare mtlog with other popular Go logging libraries (zap, zerolog).
The benchmarks are in a separate module to avoid forcing mtlog users to download unnecessary dependencies (zap, zerolog) that are only used for performance comparisons.
cd benchmarks
go test -bench=. -benchmem- Simple String: Basic string logging without allocations
- With Properties: Logging with structured fields
- Template Parsing: Message template with multiple parameters
- Complex Object: Logging with object capturing
- Filtered Out: Performance when log level filters out the message
- Console Output: Performance with formatted console output
See the main repository README for current benchmark results.