go/src/io
Albert Nigmatzianov 36e1c7ab73 io: Add benchmarks for CopyN
Copied from CL 60630

Current results:
name          time/op
CopyNSmall-4  2.20µs ±90%
CopyNLarge-4   136µs ±56%

name          alloc/op
CopyNSmall-4  1.84kB ±21%
CopyNLarge-4   128kB ±10%

name          allocs/op
CopyNSmall-4    1.00 ± 0%
CopyNLarge-4    1.00 ± 0%

Change-Id: If08c0132a773e936c9f61bff96e0aabf58006d31
Reviewed-on: https://go-review.googlesource.com/64932
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-09-20 15:00:31 +00:00
..
ioutil io/ioutil: don't cap buffer size in ReadFile 2017-08-31 19:32:18 +00:00
example_test.go io: add example for Pipe 2017-08-22 19:42:20 +00:00
io.go io: Improve performance of CopyN 2017-09-20 13:41:50 +00:00
io_test.go io: Add benchmarks for CopyN 2017-09-20 15:00:31 +00:00
multi.go
multi_test.go io: correctly compute call depth in test 2017-04-18 19:56:54 +00:00
pipe.go
pipe_test.go