]> Cypherpunks repositories - gostls13.git/commit
runtime: add benchmark of heapBitsSetType
authorRuss Cox <rsc@golang.org>
Sun, 3 May 2015 02:59:35 +0000 (22:59 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 May 2015 14:40:27 +0000 (14:40 +0000)
commit7d9e16abc6bea2eb12d718b578f91328af99586a
treef533b106b64b3b8428492a9a917e5befa86927a2
parentdb6f88a84b126877bd523df8c45af06779ce0e42
runtime: add benchmark of heapBitsSetType

There was an old benchmark that measured this indirectly
via allocation, but I don't understand how to factor out the
allocation cost when interpreting the numbers.

Replace with a benchmark that only calls heapBitsSetType,
that does not allocate. This was not possible when the
benchmark was first written, because heapBitsSetType had
not been factored out of mallocgc.

Change-Id: I30f0f02362efab3465a50769398be859832e6640
Reviewed-on: https://go-review.googlesource.com/9701
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/export_test.go
src/runtime/gc_test.go