Atelier des rouesLab FR
Register/AT.EX27.01
Controlled experiment · AT.EX27.01

Jump versus walk after warm-up

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

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 results

Assumptions

I replay the same 32 ranks under two Python versions. Each process completes a full warm-up. I measure batches of one and 32 in session orders AB and BA.

Result

All eight median walk-minus-jump differences are positive. For singletons they range from 300 to 500 ns under Python 3.10 and from 5,500 to 5,700 ns under Python 3.11 on this machine.

Prior work

Zaks

Next question

I will seek the crossover distance on an independent range of ranks.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.