Repository navigation
Conversation
psiha
force-pushed
the
tools/ab-compare
branch
from
November 3, 2026 23:29
1fd1257 to
da97bb0
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request due to rate limiting. Please try again later. See Usage limits for GitHub Copilot for details.
Adds tools/ab.sh, which runs two or more builds of an entry in turns on one machine: a work folder and an untimed load per arm, ABBA order, SCHED_FIFO verified instead of assumed, and a stop when the machine changes. tools/summarize-ab.mjs prints the median and spread of the legs per test, and says when two arms differ by more than that spread. No change to the runner or the result files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
psiha
force-pushed
the
tools/ab-compare
branch
from
November 5, 2026 10:10
da97bb0 to
77d42ca
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two tools to compare two builds of an entry fairly, in a new
tools/folder (nothing else changes):tools/ab.shruns the arms in turns on one machine:A B,B A,A B, so neither arm is always first or lastpsreports classFFand a non-zero priority for a process it started. If it cannot get it, the leg runs normally and saysnot realtime, in the output and inleg.txttools/summarize-ab.mjsprints, per test and arm, the median over the legs and the spread ((max - min) / median). Two arms are "beyond spread" only when the legs' ranges do not overlap, with at least 3 legs each. It refuses results from different machines, datasets or tests versions.--csvfor a spreadsheet.Usage is in
tools/README.md.Noise it removes
Order bias (the second run profits from a warm cache or suffers from heat), a shared snapshot between builds, scheduler jitter, a machine that changed in between, and having no spread to judge a difference against.
Schema
None. It reads the existing result files and does not touch
runner/run.mjs.How it was checked
On a Linux box, 10m,
--quick, the in-process RAMA entry, tests R1 and W3, 3 legs, the same build as both arms:FF 50in all legs, leg orderAB BA AB, exit codes 0, and the summary table printed. The box was busy, so W3 showed a wide spread and, correctly, no difference beyond it.not realtime, and the summary shows it. With 2 legs it says "fewer than 3 legs" instead of a verdict.Not checked: the stop on a changed machine (the summary's refusal was), a timed run on a quiet machine, the
sudopath,--cpus, a run with a failing leg, macOS.🤖 Generated with Claude Code