aboutsummaryrefslogtreecommitdiff
path: root/src/errors/errors.go
diff options
context:
space:
mode:
authorMarcel van Lohuizen <mpvl@golang.org>2019-03-13 12:24:54 +0100
committerMarcel van Lohuizen <mpvl@golang.org>2019-03-14 09:31:05 +0000
commit5402854c3557f87fa2741a52ffc15dfb1ef333cc (patch)
tree82d254b3022d2de2c152a0f5cb751a0133d4fee8 /src/errors/errors.go
parentb6fb6673bc1d132025b75fb6d3928775d959a8e3 (diff)
downloadgo-5402854c3557f87fa2741a52ffc15dfb1ef333cc.tar.xz
errors: record only single frame
See Issue #29382 and Issue #30468. 3 frames are no longer needed as of https://go-review.googlesource.com/c/go/+/152537/ name old time/op new time/op delta New-8 475ns ± 3% 352ns ± 2% -25.87% (p=0.008 n=5+5) Errorf/no_format-8 661ns ± 4% 558ns ± 2% -15.63% (p=0.008 n=5+5) Errorf/with_format-8 729ns ± 6% 626ns ± 2% -14.23% (p=0.008 n=5+5) Errorf/method:_mytype-8 1.00µs ± 9% 0.84µs ± 2% -15.94% (p=0.008 n=5+5) Errorf/method:_number-8 1.25µs ± 7% 1.04µs ± 2% -16.38% (p=0.008 n=5+5) Change-Id: I30377e769b3b3be623f63ecbe365f8950ca08dda Reviewed-on: https://go-review.googlesource.com/c/go/+/167400 Run-TryBot: Marcel van Lohuizen <mpvl@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/errors/errors.go')
0 files changed, 0 insertions, 0 deletions