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 2339e7c commit 4704e55Copy full SHA for 4704e55
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