(parent context.Context)
| 129 | var ck = ctxKey{} |
| 130 | |
| 131 | func newContextWithGlobalKey(parent context.Context) context.Context { |
| 132 | return context.WithValue(parent, ck, nil) |
| 133 | } |
| 134 | |
| 135 | func BenchmarkContextWithValue(b *testing.B) { |
| 136 | benches := []struct { |