============================================================================ NumericStructList Benchmarks ============================================================================
(b *testing.B)
| 262 | // ============================================================================ |
| 263 | |
| 264 | func BenchmarkFory_NumericStructList_Serialize(b *testing.B) { |
| 265 | f := newFory() |
| 266 | obj := CreateNumericStructList() |
| 267 | buf := fory.NewByteBuffer(make([]byte, 0, 65536)) |
| 268 | |
| 269 | b.ResetTimer() |
| 270 | for i := 0; i < b.N; i++ { |
| 271 | buf.Reset() |
| 272 | err := f.SerializeTo(buf, &obj) |
| 273 | if err != nil { |
| 274 | b.Fatal(err) |
| 275 | } |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | func BenchmarkProtobuf_NumericStructList_Serialize(b *testing.B) { |
| 280 | rejectNonForySchemaMismatch(b) |
nothing calls this directly
no test coverage detected