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

Function BenchmarkItemContext_Get_1

core/concurrenceMap_test.go:90–95  ·  view source on GitHub ↗

基准测试

(b *testing.B)

Source from the content-addressed store, hash-verified

88
89// 基准测试
90func BenchmarkItemContext_Get_1(b *testing.B) {
91 ic.Set("foo", "bar")
92 for i := 0; i < b.N; i++ {
93 ic.Get("foo")
94 }
95}
96
97// 并发效率
98func BenchmarkItemContext_Get_Parallel(b *testing.B) {

Callers

nothing calls this directly

Calls 2

SetMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected