Run all benchmarks and return comprehensive results.
(self)
| 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 | |
| 297 | class AntagonisticBenchmark: |
no test coverage detected