MCPcopy Create free account
hub / github.com/Open-Quant/openquant / as_dict

Method as_dict

python/benchmarks/benchmark_data_processing.py:30–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 mb_per_sec: float
29
30 def as_dict(self) -> dict[str, Any]:
31 return {
32 "name": self.name,
33 "rows": self.rows,
34 "bytes_estimate": self.bytes_estimate,
35 "iterations": self.iterations,
36 "mean_ms": self.mean_ms,
37 "p50_ms": self.p50_ms,
38 "p95_ms": self.p95_ms,
39 "std_ms": self.std_ms,
40 "rows_per_sec": self.rows_per_sec,
41 "mb_per_sec": self.mb_per_sec,
42 }
43
44
45def _estimate_df_bytes(df: pl.DataFrame) -> int:

Callers 1

run_benchmarksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected