Atelier des rouesLab FR
← Experiments

Timing jumps in batches

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

I illustrate how batching changes the measured crossover at gap 22: walking minus jumping is −200 ns per isolated call, then +187.5 and +253.125 ns per call in batches of 8 and 32. Zaks defines the permutation operations, while this single-session timing probes call grouping. The sign reversal is a useful local demonstration, not a general performance finding; I would repeat with independent sessions, more repetitions, and a stated timer resolution before using it to choose a method.

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

How I rate results

Does the crossover survive batching the calls?

Median per call (ns)
187.5
Minimum (ns)
-1225.0
Maximum (ns)
912.5

Walk minus jump · 20 paired timings