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

Function BenchmarkItemContext_Set_1

core/concurrenceMap_test.go:72–77  ·  view source on GitHub ↗

性能测试 基准测试

(b *testing.B)

Source from the content-addressed store, hash-verified

70
71// 基准测试
72func BenchmarkItemContext_Set_1(b *testing.B) {
73 var num uint64 = 1
74 for i := 0; i < b.N; i++ {
75 ic.Set(fmt.Sprint(num), num)
76 }
77}
78
79// 并发效率
80func BenchmarkItemContext_Set_Parallel(b *testing.B) {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected