Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syntax: avoid using bytes.Buffer for heredoc words
We don't need an io.Writer; append is enough. name old time/op new time/op delta Parse-16 38.8µs ± 0% 38.6µs ± 1% ~ (p=0.102 n=6+6) name old alloc/op new alloc/op delta Parse-16 17.1kB ± 0% 17.1kB ± 0% -0.28% (p=0.002 n=6+6) name old allocs/op new allocs/op delta Parse-16 116 ± 0% 116 ± 0% ~ (all equal) After this series of commits, comparing the original code against the latest using the "fair" benchmark gives us good numbers: name old time/op new time/op delta Parse-16 39.8µs ± 1% 38.6µs ± 1% -3.03% (p=0.002 n=6+6) name old alloc/op new alloc/op delta Parse-16 21.0kB ± 0% 17.1kB ± 0% -18.84% (p=0.002 n=6+6) name old allocs/op new allocs/op delta Parse-16 101 ± 0% 116 ± 0% +14.85% (p=0.002 n=6+6)
- Loading branch information