]> Cypherpunks repositories - gostls13.git/commit
runtime: shrink time histogram buckets
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 30 Aug 2022 03:13:36 +0000 (03:13 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 16 Sep 2022 16:32:01 +0000 (16:32 +0000)
commit87eda2a782db9b7ad2ec1fd335ed6c7472aa66bc
treeddce2915a770b3fa37fac8410352924a47055cfb
parent1fc83690e68de1ce252975c5fd3a232629d6a3d6
runtime: shrink time histogram buckets

There are lots of useless buckets with too much precision. Introduce a
minimum level of precision with a minimum bucket bit. This cuts down on
the size of a time histogram dramatically (~3x). Also, pick a smaller
sub bucket count; we don't need 6% precision.

Also, rename super-buckets to buckets to more closely line up with HDR
histogram literature.

Change-Id: I199449650e4b34f2a6dca3cf1d8edb071c6655c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/427615
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/export_test.go
src/runtime/histogram.go
src/runtime/histogram_test.go
src/runtime/metrics.go