pkg/logjson benchmark and test

same question here for using `buf` instead of creating a `bytes.NewReader`