MCPcopy Index your code
hub / github.com/python/cpython / run_all

Method run_all

Tools/picklebench/memory_dos_impact.py:281–294  ·  view source on GitHub ↗

Run all benchmarks and return comprehensive results.

(self)

Source from the content-addressed store, hash-verified

279 return peak
280
281 def run_all(self) -> Dict[str, Any]:
282 """Run all benchmarks and return comprehensive results."""
283 time_stats = self.benchmark_time()
284 peak_memory = self.benchmark_memory()
285
286 return {
287 'pickle_size_bytes': self.pickle_size,
288 'pickle_size_mb': self.pickle_size / (1 << 20),
289 'protocol': self.protocol,
290 'time': time_stats,
291 'memory_peak_bytes': peak_memory,
292 'memory_peak_mb': peak_memory / (1 << 20),
293 'iterations': self.iterations,
294 }
295
296
297class AntagonisticBenchmark:

Callers 1

run_testMethod · 0.95

Calls 2

benchmark_timeMethod · 0.95
benchmark_memoryMethod · 0.95

Tested by

no test coverage detected