1
0
mirror of https://github.com/golang/go synced 2024-11-19 14:44:40 -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 all: fix minor misspellings 2017-04-03 23:19:07 +00:00
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 context: make DeadlineExceeded implement net.Error 2016-10-05 15:53:04 +00:00
x_test.go context: adjust tests to avoid importing "testing" in package context 2016-11-03 21:12:21 +00:00