============================================================================ SampleList Benchmarks ============================================================================
(b *testing.B)
| 504 | // ============================================================================ |
| 505 | |
| 506 | func BenchmarkFory_SampleList_Serialize(b *testing.B) { |
| 507 | f := newFory() |
| 508 | obj := CreateSampleList() |
| 509 | buf := fory.NewByteBuffer(make([]byte, 0, 131072)) |
| 510 | |
| 511 | b.ResetTimer() |
| 512 | for i := 0; i < b.N; i++ { |
| 513 | buf.Reset() |
| 514 | err := f.SerializeTo(buf, &obj) |
| 515 | if err != nil { |
| 516 | b.Fatal(err) |
| 517 | } |
| 518 | } |
| 519 | } |
| 520 | |
| 521 | func BenchmarkProtobuf_SampleList_Serialize(b *testing.B) { |
| 522 | rejectNonForySchemaMismatch(b) |
nothing calls this directly
no test coverage detected