Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syntax: use fewer tabwriter escape characters
name old time/op new time/op delta Print-8 11.5µs ± 0% 11.4µs ± 1% -1.03% (p=0.002 n=6+6) name old alloc/op new alloc/op delta Print-8 344B ± 0% 312B ± 0% -9.30% (p=0.002 n=6+6) name old allocs/op new allocs/op delta Print-8 10.0 ± 0% 9.0 ± 0% -10.00% (p=0.002 n=6+6) We'll leave the tabwriter optimizations here for now. I've sent https://go-review.googlesource.com/c/go/+/166797 to upstream, which shaves off 27% from our benchmark. In total, the overhead of tabwriter goes down from the initial ~135% to ~55%, which is much more acceptable. We even allocate less garbage, too. name old time/op new time/op delta Print-8 5.29µs ± 0% 8.21µs ± 1% +55.19% (p=0.002 n=6+6) name old alloc/op new alloc/op delta Print-8 344B ± 0% 312B ± 0% -9.30% (p=0.002 n=6+6) name old allocs/op new allocs/op delta Print-8 13.0 ± 0% 9.0 ± 0% -30.77% (p=0.002 n=6+6)
- Loading branch information