MCPcopy Create free account
hub / github.com/livekit/livekit / BenchmarkExtPacketFactory

Function BenchmarkExtPacketFactory

pkg/sfu/buffer/buffer_test.go:472–479  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

470}
471
472func BenchmarkExtPacketFactory(b *testing.B) {
473
474 for b.Loop() {
475 extPkt := ExtPacketFactory.Get().(*ExtPacket)
476 *extPkt = ExtPacket{}
477 ExtPacketFactory.Put(extPkt)
478 }
479}

Callers

nothing calls this directly

Calls 2

PutMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…