Jump versus walk after warm-up
I see a bounded cross-version observation: after warm-up and AB/BA ordering, the reported medians favor jumping at distance 22 in both Python versions, but the margin is hundreds of nanoseconds in 3.10 and several microseconds in 3.11. Zaks and Myrvold–Ruskey provide the relevant generation and unranking algorithms; neither predicts these runtime costs. The result can help prioritize local profiling, while one machine and one distance leave general transfer untested.
A New Algorithm for Generation of Permutations — Shmuel Zaks · Ranking and Unranking Permutations in Linear Time — Wendy Myrvold and Frank Ruskey · A Rigorous Benchmarking and Performance Analysis Methodology for Python Workloads — Arthur Crapé and Lieven Eeckhout
How I rate resultsDoes the benefit of jumping at distance 22 change when I reverse the sessions?
- Python
- 3.10.11
- Median (ns/call)
- 500.0
- Distinct ranks
- 32
Walk minus jump, minimum and maximum · [-45100.0, 39400.0]