MCPcopy Create free account
hub / github.com/apache/fory / BenchmarkMsgpack_MediaContent_Serialize

Function BenchmarkMsgpack_MediaContent_Serialize

benchmarks/go/benchmark_test.go:656–667  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

654}
655
656func BenchmarkMsgpack_MediaContent_Serialize(b *testing.B) {
657 rejectNonForySchemaMismatch(b)
658 obj := CreateMediaContent()
659
660 b.ResetTimer()
661 for i := 0; i < b.N; i++ {
662 _, err := msgpack.Marshal(obj)
663 if err != nil {
664 b.Fatal(err)
665 }
666 }
667}
668
669func BenchmarkFory_MediaContent_Deserialize(b *testing.B) {
670 writer := newFory()

Callers

nothing calls this directly

Calls 3

CreateMediaContentFunction · 0.85
MarshalMethod · 0.80

Tested by

no test coverage detected