MCPcopy Create free account
hub / github.com/apache/arrow / default

Method default

dev/archery/archery/benchmark/codec.py:27–40  ·  view source on GitHub ↗
(self, o)

Source from the content-addressed store, hash-verified

25
26class JsonEncoder(json.JSONEncoder):
27 def default(self, o):
28 if isinstance(o, Benchmark):
29 return BenchmarkCodec.encode(o)
30
31 if isinstance(o, BenchmarkSuite):
32 return BenchmarkSuiteCodec.encode(o)
33
34 if isinstance(o, BenchmarkRunner):
35 return BenchmarkRunnerCodec.encode(o)
36
37 if isinstance(o, BenchmarkComparator):
38 return BenchmarkComparatorCodec.encode(o)
39
40 return json.JSONEncoder.default(self, o)
41
42
43class BenchmarkCodec:

Callers 3

setupMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80

Calls 1

encodeMethod · 0.45

Tested by 3

setupMethod · 0.64
setupMethod · 0.64
setupMethod · 0.64