Repository navigation
Faster emulator suites: sharded suites, one-peek rled state reads - #20
Merged
Merged
Conversation
Rytm firmware 0.5.0
…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.
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.
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.pyruns alone;--host-changed REV;build/suites/est.jsonwritten 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.pyruns in the same worktree share job directory names; run one at a time per worktree.