(self, loops: int)
| 120 | self._random = random.Random(self._seed) |
| 121 | |
| 122 | def run(self, loops: int) -> float: |
| 123 | all_data = self._prepare_data(loops) |
| 124 | start = time.perf_counter() |
| 125 | |
| 126 | for data in all_data: |
| 127 | data.sort() # Benching this method! |
| 128 | |
| 129 | return time.perf_counter() - start |
| 130 | |
| 131 | def _prepare_data(self, loops: int) -> list[float]: |
| 132 | bench = BENCHMARKS[self._name] |
no test coverage detected