This repo compares the performance of popular Go Logging Libraries including the new Slog package.
The following libraries are being tested:
You only need a recent version of Go to execute the benchmarks.
- Clone the repository to your computer:
git clone https://github.com/betterstack-community/go-logging-benchmarks
cd go-logging-benchmarks
- Download the dependencies:
go mod tidy
- Execute the benchmarks:
go test -bench=. -benchmem
The code used in this project and in the linked tutorial are licensed under the Apache License, Version 2.0.
If you found an issue with the benchmarks, or you want to propose a new library for benchmarking, please open an issue or pull request accordingly.