(b *testing.B)
| 654 | } |
| 655 | |
| 656 | func 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 | |
| 669 | func BenchmarkFory_MediaContent_Deserialize(b *testing.B) { |
| 670 | writer := newFory() |
nothing calls this directly
no test coverage detected