You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+18
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ A lightweight, flexible logger that merges debug-style namespace management, Win
19
19
-[Log data and metadata](#log-data-and-metadata)
20
20
-[Adding global metadata](#adding-global-metadata)
21
21
-[Force logging](#force-logging)
22
+
-[Benchmark](#benchmark)
23
+
-[Contributing](#contributing)
22
24
23
25
## Features
24
26
-**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:
185
187
logger.debug('Will be logged regardless of level', { forceLogging:true });
186
188
```
187
189
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
+
188
206
## Contributing
189
207
190
208
Contributions are welcome! Please refer to our [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on submitting issues, improvements, and more.
0 commit comments