]> Cypherpunks repositories - gostls13.git/commit
runtime: add Benchmark[Clear|Copy]Fat[16|24]
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 18 Jul 2014 19:18:36 +0000 (12:18 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 18 Jul 2014 19:18:36 +0000 (12:18 -0700)
commit3ee391cc835a58af0a7cb049e7dd4515d30452c7
tree4658a503be70a5215180823063185aadc23038f5
parente45c384b73bdf9b8b57f6319c2db763187a1da4f
runtime: add Benchmark[Clear|Copy]Fat[16|24]

These benchmarks are important for performance. When compiling the stdlib:

* 77.1% of the calls to sgen (copyfat) are for 16 bytes; another 8.7% are for 24 bytes. (The next most common is 32 bytes, at 5.7%.)
* Over half the calls to clearfat are for 16 or 24 bytes.

LGTM=khr
R=golang-codereviews, khr
CC=golang-codereviews
https://golang.org/cl/111350043
src/pkg/runtime/memmove_test.go