]> Cypherpunks repositories - gostls13.git/commit
io: Add benchmarks for CopyN
authorAlbert Nigmatzianov <albertnigma@gmail.com>
Wed, 20 Sep 2017 14:23:11 +0000 (19:23 +0500)
committerIan Lance Taylor <iant@golang.org>
Wed, 20 Sep 2017 15:00:31 +0000 (15:00 +0000)
commit36e1c7ab73591388ba1a7246ada21e0baefd2ce1
treef178fd2989b78197ef2b050a1286d40bda83b96a
parent098eb01600fe0e90aee21d204924c67188fe26d4
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>
src/io/io_test.go