sync bench_logs, add test for serializing to BufWriter