]> Cypherpunks repositories - gostls13.git/commit
runtime: add a benchmark of FPCallers
authorFelix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Mon, 13 Mar 2023 08:56:45 +0000 (09:56 +0100)
committerMichael Pratt <mpratt@google.com>
Thu, 30 Mar 2023 19:18:18 +0000 (19:18 +0000)
commit25f9af666194f81741aed8ea422661bd58149d30
tree78c547eb1785862bd034e216d1c6f080651f115a
parent3dd221a94d044cb4371ec20266817a703b2fe683
runtime: add a benchmark of FPCallers

This allows comparing frame pointer unwinding against the default
unwinder as shown below.

goos: linux
goarch: amd64
pkg: runtime
cpu: Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz
                    │ callers.txt │
                    │   sec/op    │
Callers/cached-32     1.254µ ± 0%
FPCallers/cached-32   24.99n ± 0%

For #16638

Change-Id: I4dd05f82254726152ef4a5d5beceab33641e9d2b
Reviewed-on: https://go-review.googlesource.com/c/go/+/475795
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Felix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/callers_test.go
src/runtime/export_test.go