MCPcopy Index your code
hub / github.com/coder/coder / BenchmarkConcurrentGroup

Function BenchmarkConcurrentGroup

aibridge/utils/concurrent_group_test.go:73–81  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

71}
72
73func BenchmarkConcurrentGroup(b *testing.B) {
74 for i := 0; i < b.N; i++ {
75 cg := utils.NewConcurrentGroup()
76 for j := 0; j < 10; j++ {
77 cg.Go(func() error { return nil })
78 }
79 _ = cg.Wait()
80 }
81}

Callers

nothing calls this directly

Calls 3

GoMethod · 0.95
WaitMethod · 0.95
NewConcurrentGroupFunction · 0.92

Tested by

no test coverage detected