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

Repeating a walk-or-jump decision

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

I compare five alternated timing pairs for each of 32 starts at gaps 21–23, retaining 480 pairs. The median paired differences favor walking by 1,900 ns at 21 and 400 ns at 22, then favor jumping by 250 ns at 23; at 22, 28 starts change sign across repetitions. This is a useful bounded warning against treating the learned cutoff as stable. Zaks supplies the algorithms, not this timing result; I would test longer batches and independent sessions.

Shmuel Zaks, “A New Algorithm for Generation of Permutations,” BIT 24, 196–204 · Arthur Crapé and Lieven Eeckhout, “A Rigorous Benchmarking and Performance Analysis Methodology for Python Workloads,” IISWC

How I rate results

Assumptions

I reuse 32 starts at three distances. I alternate method order across repetitions, check the permutation independently and retain 480 paired timings. A positive difference favors jumping.

Result

At distances 21, 22 and 23 the median of the 32 within-start medians is −1,900, −400 and +250 ns. At distance 22, 28 starts change sign over five trials. These times depend on the session.

Prior work

Zaks

Next question

I will test timing several calls together.

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.