1
0
mirror of https://github.com/golang/go synced 2024-11-23 06:50:05 -07:00
go/src/context
Keegan Carruthers-Smith 0b9c1ad20d context: avoid defer in the cancelCtx.Err method
name                  old time/op  new time/op  delta
CheckCanceled/Err-4   53.5ns ± 2%  20.8ns ± 0%  -61.05%  (p=0.008 n=5+5)
CheckCanceled/Done-4  44.4ns ± 1%  44.5ns ± 0%     ~     (p=0.889 n=5+5)

Change-Id: I2c68700a2b33f8feb3d307ce7c966590a3e960af
Reviewed-on: https://go-review.googlesource.com/107137
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-04-15 21:35:53 +00:00
..
benchmark_test.go context: avoid defer in the cancelCtx.Err method 2018-04-15 21:35:53 +00:00
context_test.go
context.go context: avoid defer in the cancelCtx.Err method 2018-04-15 21:35:53 +00:00
example_test.go all: fix article typos 2017-09-15 02:39:16 +00:00
net_test.go
x_test.go