MCPcopy Create free account
hub / github.com/apache/fory / build_pickle_benchmark_case

Function build_pickle_benchmark_case

benchmarks/python/fory_benchmark.py:385–390  ·  view source on GitHub ↗
(operation: str, obj)

Source from the content-addressed store, hash-verified

383
384
385def 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
393def build_msgpack_benchmark_case(operation: str, obj):

Callers 1

micro_benchmarkFunction · 0.85

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected