8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Tools/scripts/sortperf.py
1 parent 982f457 commit cad4234Copy full SHA for cad4234
Tools/scripts/sortperf.py
@@ -130,7 +130,8 @@ def run(self, loops: int) -> float:
130
131
def _prepare_data(self, loops: int) -> list[float]:
132
bench = BENCHMARKS[self._name]
133
- return [bench(self._size, self._random)] * loops
+ data = bench(self._size, self._random)
134
+ return [data.copy() for _ in range(loops)]
135
136
137
def add_cmdline_args(cmd: list[str], args) -> None:
0 commit comments