]> Cypherpunks repositories - gostls13.git/commit
runtime: add countAlloc benchmark
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 18 Mar 2020 18:46:04 +0000 (18:46 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 23 Mar 2020 16:55:37 +0000 (16:55 +0000)
commit7af6a31b48c5cb4d8cc9ca346949d1143ece76ca
tree9c86897d78e32316bf1dd1d242d64891971995c2
parent8c30971da654a37a5f5f211e6dccf8d83e7ee463
runtime: add countAlloc benchmark

This change adds a small microbenchmark for (*mspan).countAlloc, which
we're about to replace. Admittedly this isn't a critical piece of code,
but the benchmark was useful in understanding the performance change.

Change-Id: Iea93c00f571ee95534a42f2ef2ab026b382242b3
Reviewed-on: https://go-review.googlesource.com/c/go/+/224438
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/export_test.go
src/runtime/gc_test.go