go/src/encoding/binary
zhouzhongyuan 83bc1ed316 encoding/binary: remove TODO in Write and add benchmarks
Benchmarks:
goos: linux
goarch: amd64
BenchmarkReadSlice1000Uint8s-8           4097088               296 ns/op        3381.06 MB/s
BenchmarkWriteSlice1000Uint8s-8          4372588               271 ns/op        3694.96 MB/s

Change-Id: I5b6ef0da5052e3381ee9c714bbff541c11ed0259
Reviewed-on: https://go-review.googlesource.com/c/go/+/246837
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
2020-09-23 03:14:03 +00:00
..
binary.go encoding/binary: remove TODO in Write and add benchmarks 2020-09-23 03:14:03 +00:00
binary_test.go encoding/binary: remove TODO in Write and add benchmarks 2020-09-23 03:14:03 +00:00
example_test.go all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00
varint.go encoding/binary: replace constant literals with named constant (cleanup) 2020-08-25 16:06:28 +00:00
varint_test.go encoding/binary: read at most MaxVarintLen64 bytes in ReadUvarint 2020-08-06 17:24:10 +00:00