(operation: str, obj)
| 383 | |
| 384 | |
| 385 | def build_pickle_benchmark_case(operation: str, obj): |
| 386 | if operation == "serialize": |
| 387 | return pickle_serialize, (obj,) |
| 388 | if operation == "deserialize": |
| 389 | return pickle_deserialize, (pickle.dumps(obj),) |
| 390 | return pickle_roundtrip, (obj,) |
| 391 | |
| 392 | |
| 393 | def build_msgpack_benchmark_case(operation: str, obj): |
no test coverage detected