Skip to content

Faster emulator suites: sharded suites, one-peek rled state reads - #20

Merged
trigcondition merged 4 commits into
devfrom
tools/fast-suites
Nov 22, 2026
Merged

trigcondition merged 4 commits into
devfrom
tools/fast-suites

Conversation

@trigcondition

Copy link
Copy Markdown
Owner

Test tooling only, no change to any mod.

  • rled_emu.py: stock_state reads each state range with one dtpeek (5 per state instead of 47); a short read now asserts.
  • suites.py: shards for us, sfu, sfx, md, sq, bk and pj (balanced on measured times; tests that depend on each other stay in one shard); re/os/ changes select every suite; a new unregistered <x>_emu.py runs alone; --host-changed REV; build/suites/est.json written atomically.

Same tag, OS 1.74, suites.py --full -j 4: 5050 s before, 3588 s after (-29 %); rled alone 8358 s to 2234 s. Verdicts identical (only rled's two known stockupkeys CLASH checks fail, before and after); the set of unique check lines is the same.

Known limit: two suites.py runs in the same worktree share job directory names; run one at a time per worktree.

…peek (5 a state, not 47)

stock_state ran one dtpeek process per 256-byte item. Each dtpeek parses the firmware, builds the machine and loads the
snapshot to read a few bytes, so about 90 % of rled's wall time was process start-up. It now peeks each STATE range once
and cuts it into the same 256-byte items (the same keys in the same order, the same bytes: a peek of a snapshot is pure).
…n; --host-changed; est.json

A full run at -j 4 on OS 1.74 drops from 5050 s to 3588 s with the same checks and
verdicts. Each passing job's seconds go to build/suites/est.json for the plan and the
longest-first order; the table's estimates are the 2026-11-19 one-process times.
…, est.json written whole

sfu's and sfx's stock reread save / fx38 when run in another shard (911 s and 973 s
shards); with them the longest shard is 616 s and the PASS counts equal one process's.
est.json goes through a temp file and os.replace. rled stock_state asserts dtpeek
returned every byte, so a failed read cannot compare equal. README: shard counts and
per-shard .times.
@trigcondition
trigcondition merged commit 0b52f0a into dev Nov 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant