Compare each device report's planned threads with its sweep
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 89/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- node.js, typescript
Research direction
Start with scripts/devices/table.mjs, scripts/devices/table.test.mjs, and scripts/devices/validate.mjs to follow the report-reading and test-writing patterns. Add scripts/devices/plans.test.mjs using scripts/devices/fixtures/good-report.json, then implement the pure report-to-rows logic and Markdown output in scripts/devices/plans.mjs. Run node --test scripts/devices/plans.test.mjs; done means the specified sweep cases pass, the script prints “No reports yet.” with no data, and docs/devices.md documents how to run it.
Written by the indexing model from the issue text.
Description
Why
Each Device lab report times the thread count Hermit planned for the phone and then 2 and 4 threads, but the device table shows only the planned count, so nobody can see where another count was faster. ROADMAP.md, Now: numbers from real phones, so the device-adaptive runtime learns from real hardware.
What to do
No phone needed. The counts come from sweepThreads() in packages/eval/src/device-lab.ts; a report keeps them in speed (the plan's count) and speed.sweep (the others).
- Test first: create
scripts/devices/plans.test.mjswith made-up reports built fromscripts/devices/fixtures/good-report.json. Change the numbers and keep the made-up phone names. Cover: the plan is fastest; a sweep count beats the plan; a sweep entry that wrote nothing (tokensPerSecond0); a report with an empty sweep; no reports at all. - Create
scripts/devices/plans.mjs. It reads the reports indata/devices, or in--data DIR, throughreadEntries()fromscripts/devices/table.mjs, which checks every file. It prints a Markdown table: phone, chip, tier (runtime.tier), the cores Android allowed (runtime.allowedCpus), the planned threads and their tokens per second, each sweep count with its tokens per second, the fastest count, and how much faster than the plan it was, in percent. - Mark a row when another count beat the plan by more than 10 percent. Keep that number in one named constant: each count is the mean of only two calls, so small gaps are noise.
- Export the pure part (reports in, rows out), the way
table.mjsexportsrenderTable(), so most tests need no files. For a test that does, write files withwriteReport()fromscripts/devices/validate.mjs, astable.test.mjsdoes. - Add one line to docs/devices.md, after the sentence about
table.mjs, saying how to run it.
Done when
node scripts/devices/plans.mjsprints "No reports yet." when there is no data, and the table otherwise.node --test scripts/devices/plans.test.mjspasses, andpnpm testruns it: the roottestscript already includesscripts/devices/*.test.mjs.- The script only reads. It writes no file, and the device table between the markers in docs/devices.md doesn't change.
How to check
node --test scripts/devices/plans.test.mjs
node scripts/devices/plans.mjs --data DIR
pnpm test
Keep in mind
- Node built-ins only. No dependency, no network.
- Don't change the planner in
packages/modelhere. If the table shows the plan losing on some chip, open an issue with those rows: a planner change is on the model path and needs its own numbers. - Made-up phones only in tests and fixtures.
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 0
- Avg merge
- 10m
- Merged PRs (30d)
- 6
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DojoCodingLabs/hermit
-
docs good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
DojoCodingLabs/hermit#73 ·
Maintainers usually reply within 1 day
-
device-lab
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
DojoCodingLabs/hermit#45 ·
Maintainers usually reply within 1 day
-
device-lab
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
DojoCodingLabs/hermit#44 ·
Maintainers usually reply within 1 day
-
device-lab
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DojoCodingLabs/hermit#43 ·
Maintainers usually reply within 1 day
-
agent-friendly docs good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
DojoCodingLabs/hermit#39 ·
Maintainers usually reply within 1 day
All issues in DojoCodingLabs/hermit
Similar issues
-
bug zoo
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
software-mansion/runntime#151 ·
Maintainers usually reply within 4 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
sidebandstudio/clawtrate#728 ·
Maintainers usually reply within 1 day
-
enhancement github_actions help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainers usually reply within 1 day
-
bug tooling
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
endora-commerce/endora-commerce#1978 ·
Maintainers usually reply within 1 day