(b *testing.B)
| 412 | } |
| 413 | |
| 414 | func BenchmarkMsgpack_Sample_Serialize(b *testing.B) { |
| 415 | rejectNonForySchemaMismatch(b) |
| 416 | obj := CreateSample() |
| 417 | |
| 418 | b.ResetTimer() |
| 419 | for i := 0; i < b.N; i++ { |
| 420 | _, err := msgpack.Marshal(obj) |
| 421 | if err != nil { |
| 422 | b.Fatal(err) |
| 423 | } |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | func BenchmarkFory_Sample_Deserialize(b *testing.B) { |
| 428 | writer := newFory() |
nothing calls this directly
no test coverage detected