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

Jump cost under two interpreters

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

I treat this as a cautionary local comparison: replaying the same 32 starts on nine objects changes both measured differences substantially, and the record itself flags different execution environments. Zaks establishes the walk’s generation and unranking methods, not a universal speed crossover; direct permutation unranking is also established in Myrvold and Ruskey. This may motivate per-environment profiling, but the two-session comparison lacks enough controlled repetitions to support a tuning 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 results

Assumptions

I replay the same 32 ranks for nine objects, alternate method order, keep five repetitions per batch and check every permutation.

Result

On this machine median walk minus jump changes from −400 to +5,300 ns per call for singletons and from +162.5 to +5,578.125 for batches of 32. These measurements compare two local runs in their respective environments.

Prior work

Zaks

Next question

I will test session order and warm-up effects.

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.