pkg/logjson benchmark and test

why don't you use `buf` directly since it is an io.Reader ?