diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 23:26:31 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 23:26:31 +0200 |
| commit | 15ea7f40cd7302b9bf9f0aea0d85a970a8a7c07f (patch) | |
| tree | 897055fcb651cae1f5e96e14c966243325e95286 /src/main/resources/log4j2-async-1m.xml | |
Add Log4j2 benchmark tool
- Configurable thread count, duration, message size
- Multiple logging configurations: sync-immediate, sync-buffered
- AsyncLogger variants: 1k, 4k, 10k, 1m ring buffer sizes
- AsyncAppender variants: 1k, 4k, 10k, 1m buffer sizes
- Subprocess isolation for proper async logger initialization
- Cache dropping between tests for accurate benchmarks
- CSV output support
Diffstat (limited to 'src/main/resources/log4j2-async-1m.xml')
| -rw-r--r-- | src/main/resources/log4j2-async-1m.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/resources/log4j2-async-1m.xml b/src/main/resources/log4j2-async-1m.xml new file mode 100644 index 0000000..596d3d5 --- /dev/null +++ b/src/main/resources/log4j2-async-1m.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Configuration status="WARN"> + <Appenders> + <File name="File" fileName="target/bench.log" immediateFlush="true"> + <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> + </File> + </Appenders> + <Loggers> + <AsyncLogger name="bench" level="info" includeLocation="false"> + <AppenderRef ref="File"/> + </AsyncLogger> + <Root level="info" includeLocation="false"> + <AppenderRef ref="File"/> + </Root> + </Loggers> +</Configuration> |
