(b)
| 43 | class BenchmarkCodec: |
| 44 | @staticmethod |
| 45 | def encode(b): |
| 46 | return { |
| 47 | "name": b.name, |
| 48 | "unit": b.unit, |
| 49 | "less_is_better": b.less_is_better, |
| 50 | "values": b.values, |
| 51 | "time_unit": b.time_unit, |
| 52 | "times": b.times, |
| 53 | "counters": b.counters, |
| 54 | } |
| 55 | |
| 56 | @staticmethod |
| 57 | def decode(dct, **kwargs): |
no outgoing calls