]> Cypherpunks repositories - gostls13.git/commit
runtime: benchmark mutex handoffs
authorRhys Hiltner <rhys.hiltner@gmail.com>
Wed, 31 Jul 2024 20:45:53 +0000 (13:45 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 2 Aug 2024 21:00:51 +0000 (21:00 +0000)
commite8776e19b93dc59860dad2f23da68d373b3fea39
tree0606ce2431d9e89be3f369d3f6d7330e65e24822
parentaac7106cb9b6e59cb16f1c0a1123a67669a4ed2d
runtime: benchmark mutex handoffs

The speed of handing off a mutex to a waiting thread is sensitive to the
configuration of the spinning section of lock2. Measure that latency
directly, to complement our existing benchmarks of mutex throughput.

For #68578

Change-Id: I7637684bcff62eb05cc008491f095f653d13af4b
Reviewed-on: https://go-review.googlesource.com/c/go/+/602176
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/runtime_test.go