]> Cypherpunks repositories - gostls13.git/commit
runtime: add readMetrics latency benchmark
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 5 Aug 2020 23:10:46 +0000 (23:10 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 26 Oct 2020 18:29:12 +0000 (18:29 +0000)
commit74e566ed1dc52f7ef58093aff936a0931537a1ad
tree4fc9d8a3b8db27c7f9979734eb233e50a0f1ddb9
parentb08dfbaa439e4e396b979e02ea2e7d36972e8b7a
runtime: add readMetrics latency benchmark

This change adds a new benchmark to the runtime tests for measuring the
latency of the new metrics implementation, based on the
ReadMemStats latency benchmark. readMetrics will have more metrics added
to it in the future, and this benchmark will serve as a way to measure
the cost of adding additional metrics.

Change-Id: Ib05e3ed4afa49a70863fc0c418eab35b72263e24
Reviewed-on: https://go-review.googlesource.com/c/go/+/247042
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/gc_test.go
src/runtime/metrics_test.go