MCPcopy Create free account
hub / github.com/devfeel/dotweb / BenchmarkItemContext_Get_Parallel

Function BenchmarkItemContext_Get_Parallel

core/concurrenceMap_test.go:98–106  ·  view source on GitHub ↗

并发效率

(b *testing.B)

Source from the content-addressed store, hash-verified

96
97// 并发效率
98func BenchmarkItemContext_Get_Parallel(b *testing.B) {
99 ic.Set("foo", "bar")
100 b.RunParallel(func(pb *testing.PB) {
101 for pb.Next() {
102 ic.Get("foo")
103 }
104 })
105
106}

Callers

nothing calls this directly

Calls 3

SetMethod · 0.65
NextMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected