Experiment: 1c7952f
rad experiment show 1c7952fcc5ec0b34173fb93097b2093871f36aee
by ee@did:key:z6MkvsiybCuk1WDZhh2aXDx7NTiZejKgWZygMNsUuXDMNvVQ · Apr 10 23:34 2026
shift-based insertion sort + threshold 32
Measurements
MetricBaselineThe benchmark measurement of the unmodified codeCandidateThe code with the proposed optimization appliedDeltaThe performance change from baseline to candidate
sort_time_us (us) primary544.000 us (n=1)701.000 us (n=1)+28.86% REGRESSED
Annotations
hypothesisrotate_right memmove + larger threshold
next_action_hintkeep threshold at 16, try algorithmic changes to partitioning instead
rollback_reason29% regression — rotate_right not optimal for generic T:Ord, threshold 32 too large
Base CommitThe starting commit before the optimization was applied9428db63cbf1e5503a33168747552431b9f60c25
Candidate CommitThe code with the proposed optimization applied9428db63cbf1e5503a33168747552431b9f60c25
Configoptimize.yaml
Diff
No changes
Environment
Buildtrue
Teststrue
Archaarch64
OSDarwin 14.6.1
CPUApple M2
Agentpi-autoresearch / pi
Files