Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
// 并发效率
98
func
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
Set
Method · 0.65
Next
Method · 0.65
Get
Method · 0.65
Tested by
no test coverage detected