(b *testing.B)
| 640 | } |
| 641 | |
| 642 | func BenchmarkProtobuf_MediaContent_Serialize(b *testing.B) { |
| 643 | rejectNonForySchemaMismatch(b) |
| 644 | obj := CreateMediaContent() |
| 645 | |
| 646 | b.ResetTimer() |
| 647 | for i := 0; i < b.N; i++ { |
| 648 | pbObj := ToPbMediaContent(obj) |
| 649 | _, err := proto.Marshal(pbObj) |
| 650 | if err != nil { |
| 651 | b.Fatal(err) |
| 652 | } |
| 653 | } |
| 654 | } |
| 655 | |
| 656 | func BenchmarkMsgpack_MediaContent_Serialize(b *testing.B) { |
| 657 | rejectNonForySchemaMismatch(b) |
nothing calls this directly
no test coverage detected