============================================================================ MediaContentList Benchmarks ============================================================================
(b *testing.B)
| 747 | // ============================================================================ |
| 748 | |
| 749 | func BenchmarkFory_MediaContentList_Serialize(b *testing.B) { |
| 750 | f := newFory() |
| 751 | obj := CreateMediaContentList() |
| 752 | buf := fory.NewByteBuffer(make([]byte, 0, 131072)) |
| 753 | |
| 754 | b.ResetTimer() |
| 755 | for i := 0; i < b.N; i++ { |
| 756 | buf.Reset() |
| 757 | err := f.SerializeTo(buf, &obj) |
| 758 | if err != nil { |
| 759 | b.Fatal(err) |
| 760 | } |
| 761 | } |
| 762 | } |
| 763 | |
| 764 | func BenchmarkProtobuf_MediaContentList_Serialize(b *testing.B) { |
| 765 | rejectNonForySchemaMismatch(b) |
nothing calls this directly
no test coverage detected