Skip to content

Commit 2087ee3

Browse files
committed
docs(3.0): add benchmarks results
1 parent 783a6a8 commit 2087ee3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ A lightweight, flexible logger that merges debug-style namespace management, Win
1919
- [Log data and metadata](#log-data-and-metadata)
2020
- [Adding global metadata](#adding-global-metadata)
2121
- [Force logging](#force-logging)
22+
- [Benchmark](#benchmark)
23+
- [Contributing](#contributing)
2224

2325
## Features
2426
- **Configurable log levels**: Set log levels globally or per namespace for detailed control.
@@ -185,6 +187,22 @@ Override the log level for critical messages by forcing them to be logged:
185187
logger.debug('Will be logged regardless of level', { forceLogging: true });
186188
```
187189

190+
## Benchmark
191+
Below is a performance comparison of several popular Node.js logging libraries, including @ekino/logger. Benchmarks were conducted using Node.js v22.10.0, with results measured in operations per second (higher values indicate better performance).
192+
```bash
193+
┌─────────┬──────────────────────┬───────────┐
194+
│ (index) │ library │ ops/sec │
195+
├─────────┼──────────────────────┼───────────┤
196+
│ 0 │ 'Pino''124,828'
197+
│ 1 │ '@ekino/logger v3.x''118,385'
198+
│ 2 │ '@ekino/logger v2.x''104,004'
199+
│ 3 │ 'Winston''67,536'
200+
└─────────┴──────────────────────┴───────────┘
201+
```
202+
**Note**: Benchmark results may vary depending on environment and configuration. This table provides a general reference for relative performance between libraries.
203+
204+
For more detailed benchmark results, please refer to the [benchmarks](./benchmarks/) folder.
205+
188206
## Contributing
189207

190208
Contributions are welcome! Please refer to our [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on submitting issues, improvements, and more.

0 commit comments

Comments
 (0)