8000 gh-116576: Fix `Tools/scripts/sortperf.py` sorting the same list by sobolevn · Pull Request #116577 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-116576: Fix Tools/scripts/sortperf.py sorting the same list #116577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-116576: Fix Tools/scripts/sortperf.py sorting the same list
  • Loading branch information
sobolevn committed Mar 10, 2024
commit dc2cfd1be4f9edec59261db6ee2b4f34d427d733
3 changes: 2 additions & 1 deletion Tools/scripts/sortperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def run(self, loops: int) -> float:

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:
Expand Down
0