Jump timings on a second rank range
I take this as a small rank-sensitive benchmark: across the reported sessions, results at distance 22 change with the selected rank and Python version, while the jump wins over distances 20–24 on Python 3.11.7 in these trials. Zaks explains the suffix-reversal order and its unranking; Myrvold and Ruskey give a different linear-time ranking/unranking order. This may motivate rank-aware profiling, but 32 sampled starts and incomplete raw results cannot establish a predictive rule.
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 resultsAt which distance does recomputing the permutation save time?
- Python
- 3.10.11
- Batch 1 (ns)
- -900.0
- Batch 32 (ns)
- -159.375
Median walk minus jump per call. A positive value favors jumping.