MCPcopy Create free account
hub / github.com/encodeous/nylon / BenchmarkUAPIGet

Function BenchmarkUAPIGet

polyamide/device/device_test.go:384–393  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

382}
383
384func BenchmarkUAPIGet(b *testing.B) {
385 pair := genTestPair(b, true)
386 pair.Send(b, Ping, nil)
387 pair.Send(b, Pong, nil)
388 b.ReportAllocs()
389 b.ResetTimer()
390 for i := 0; i < b.N; i++ {
391 pair[0].dev.IpcGetOperation(io.Discard)
392 }
393}
394
395func goroutineLeakCheck(t *testing.T) {
396 goroutines := func() (int, []byte) {

Callers

nothing calls this directly

Calls 3

genTestPairFunction · 0.85
IpcGetOperationMethod · 0.80
SendMethod · 0.65

Tested by

no test coverage detected