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

Function BenchmarkMsgpack_NumericStructList_Serialize

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

Source from the content-addressed store, hash-verified

291}
292
293func BenchmarkMsgpack_NumericStructList_Serialize(b *testing.B) {
294 rejectNonForySchemaMismatch(b)
295 obj := CreateNumericStructList()
296
297 b.ResetTimer()
298 for i := 0; i < b.N; i++ {
299 _, err := msgpack.Marshal(obj)
300 if err != nil {
301 b.Fatal(err)
302 }
303 }
304}
305
306func BenchmarkFory_NumericStructList_Deserialize(b *testing.B) {
307 writer := newFory()

Callers

nothing calls this directly

Calls 3

CreateNumericStructListFunction · 0.85
MarshalMethod · 0.80

Tested by

no test coverage detected