MCPcopy Create free account
hub / github.com/eth-easl/dirigent / tp

Function tp

async/fire.go:163–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161}
162
163func tp() {
164
165 size := 2000
166
167 wg := sync.WaitGroup{}
168
169 wg.Add(size)
170
171 start := time.Now()
172
173 for i := 0; i < size; i++ {
174 go func() {
175 Fire()
176 wg.Done()
177 }()
178 }
179
180 wg.Wait()
181 since := time.Since(start)
182
183 fmt.Println(int64(size) * 1e6 / since.Microseconds())
184
185 fmt.Println(counter)
186}
187
188func main() {
189 Deployservice()

Callers 1

mainFunction · 0.85

Calls 1

FireFunction · 0.85

Tested by

no test coverage detected