(operation: str, ref: bool, obj)
| 374 | |
| 375 | |
| 376 | def build_fory_benchmark_case(operation: str, ref: bool, obj): |
| 377 | if operation == "serialize": |
| 378 | return fory_serialize, (ref, obj) |
| 379 | if operation == "deserialize": |
| 380 | fory = fory_with_ref if ref else fory_without_ref |
| 381 | return fory_deserialize, (ref, fory.serialize(obj)) |
| 382 | return fory_roundtrip, (ref, obj) |
| 383 | |
| 384 | |
| 385 | def build_pickle_benchmark_case(operation: str, obj): |
no test coverage detected