(b *testing.B)
| 168 | } |
| 169 | |
| 170 | func BenchmarkMsgpack_NumericStruct_Serialize(b *testing.B) { |
| 171 | rejectNonForySchemaMismatch(b) |
| 172 | obj := CreateNumericStruct() |
| 173 | |
| 174 | b.ResetTimer() |
| 175 | for i := 0; i < b.N; i++ { |
| 176 | _, err := msgpack.Marshal(obj) |
| 177 | if err != nil { |
| 178 | b.Fatal(err) |
| 179 | } |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | func BenchmarkFory_NumericStruct_Deserialize(b *testing.B) { |
| 184 | writer := newFory() |
nothing calls this directly
no test coverage detected