Skip to content

Commit a374c12

Browse files
update readme to include performance table
Signed-off-by: Matthew Khouzam <[email protected]>
1 parent c5d46b7 commit a374c12

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ python3 jsonify.py LOG_FILE log.json
150150
On an Intel i5-1145G7 @ 2.60GHz with an NVME hard drive, using an `AsyncFileHandler` instead of the classic `FileHandler` leads to events being logged from 45 us/event (`FileHandler`) to 1.1 us/event (`AsyncFileHandler`). In other words, `AsyncFileHandler` can write 900k events in the time it takes FileHandler to write 22k events
151151
One could also take advantage of the cache effect. If the data is not saturating the IO, speed is even higher.
152152

153+
| Action | Overhead |
154+
|------------------|---------:|
155+
| Instrumentation | 72 ns |
156+
| AsyncFileHandler | 1100 ns |
157+
| FileHandler | 45000 ns |
158+
153159
## Design Philosophy
154160

155161
The design philosophy of this class is heavily inspired by the trace event format of Google. The full specification is available [here](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/edit?pli=1#).

0 commit comments

Comments
 (0)