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
+6
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,12 @@ The [benchmark archive](BENCHMARK_HISTORY.MD) contains the results of benchmarks
59
59
Since `v0.2.0` the repo contains benchmarks that check the initialization time of the logger.
60
60
All loggers are initialized really fast (about 40,000,000 calls per second on my machine) and the performance is independent of the logger configuration.
61
61
62
+
### Console VS File Logging
63
+
64
+
The benchmarks prove that independent of the used logging library the performance of logging to the console is always much slower than logging to a file.
65
+
We assume that the behavior is based on the implementation of the `java.io.PrintStream` that is used for `System.out` / `System.err`.
66
+
The class uses synchronized blocks to write to the console.
67
+
62
68
## Kudos
63
69
64
70
The following people helped to improve the benchmark:
0 commit comments