]> Cypherpunks repositories - gostls13.git/commit
runtime: add ReadMemStats latency benchmark
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 19 Feb 2020 20:54:25 +0000 (20:54 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 18 Mar 2020 17:59:19 +0000 (17:59 +0000)
commit7cfb814b0a43831ec6f847d7bb6ff00020393fcf
treeb123ea709798f5bf3226c841d175571182d3dd0a
parent79b43fa819bca31b5be2b9ed3014d8b7faf4c8cc
runtime: add ReadMemStats latency benchmark

This change adds a benchmark to the runtime which measures ReadMemStats
latencies. It generates allocations with lots of pointers to keep the GC
busy while hitting ReadMemStats and measuring the time it takes to
complete.

Updates #19812.

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