diff options
-rw-r--r-- | Tools/scripts/sortperf.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/scripts/sortperf.py b/Tools/scripts/sortperf.py index b546815..1978a6c 100644 --- a/Tools/scripts/sortperf.py +++ b/Tools/scripts/sortperf.py @@ -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: |