mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-27 05:12:50 +00:00
dbt_bench printed its results only as text. With XENORA_DBT_BENCH_JSON=<path> set it now also writes one JSON document: host CPU, OS and architecture, git revision and dirty state, debug assertions, the workload and sample counts, median, min, max, p95, p99, IQR and MIPS for the interpreter and cold and warm DBT, and the cold DBT counters. Values the benchmark cannot determine are null. The statistics are computed once in a Summary that feeds both the text line and the JSON, so the two cannot disagree. The text output and the timed work are unchanged, and no dependency is added. Unit tests cover string escaping, null handling, the whole document for fixed inputs and the text line format. Signed-off-by: Bartosz Szczepański <bartosz.szczepanski@hotmail.com>