mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-116576: Fix Tools/scripts/sortperf.py sorting the same list (#116577)
This commit is contained in:
@@ -130,7 +130,8 @@ class Benchmark:
|
||||
|
||||
def _prepare_data(self, loops: int) -> list[float]:
|
||||
bench = BENCHMARKS[self._name]
|
||||
return [bench(self._size, self._random)] * loops
|
||||
data = bench(self._size, self._random)
|
||||
return [data.copy() for _ in range(loops)]
|
||||
|
||||
|
||||
def add_cmdline_args(cmd: list[str], args) -> None:
|
||||
|
||||
Reference in New Issue
Block a user