(b *testing.B)
| 240 | } |
| 241 | |
| 242 | func BenchmarkMsgpack_NumericStruct_Deserialize(b *testing.B) { |
| 243 | rejectNonForySchemaMismatch(b) |
| 244 | obj := CreateNumericStruct() |
| 245 | data, err := msgpack.Marshal(obj) |
| 246 | if err != nil { |
| 247 | b.Fatal(err) |
| 248 | } |
| 249 | |
| 250 | b.ResetTimer() |
| 251 | for i := 0; i < b.N; i++ { |
| 252 | var result NumericStruct |
| 253 | err := msgpack.Unmarshal(data, &result) |
| 254 | if err != nil { |
| 255 | b.Fatal(err) |
| 256 | } |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | // ============================================================================ |
| 261 | // NumericStructList Benchmarks |
nothing calls this directly
no test coverage detected