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
@@ -34,12 +42,24 @@ Just add `include/` to your project. No dependencies except C++17 STL and the bu
34
42
> [!CAUTION]
35
43
> If you're compiling on Windows, make sure your compiler supports at least C++17. See [CI status](https://github.com/mbn-code/cLog/actions) for tested environments.
36
44
45
+
## Benchmarks
46
+
47
+
The following graph shows the average time (in microseconds) to log a single entry under different modes and sinks (lower is better):
48
+
49
+
<palign="center">
50
+
<imgsrc="./benchmarks/benchmark.png"alt="cLog benchmarks bar graph"width="500">
51
+
</p>
52
+
53
+
_Benchmark run on a modern Linux machine (100,000 logs per variant, see `benchmarks/benchmark_logger.cpp`)._
54
+
55
+
---
56
+
37
57
## Features
38
58
- Async and sync modes (`Logger::Mode`)
39
59
- Safe, automatic background flushing and shutdown
40
60
- Console and file sinks out of the box
41
61
- Fully structured JSON logs
42
-
- Clean, chainable API: `info().kv().kv()`
62
+
- Clean, chainable API: `info().kv().kv()`, now with `debug()`, `warn()`, `error()` and all levels
0 commit comments