Compare each device report's planned threads with its sweep
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 89/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- node.js, typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 11
- Fork
- 0
- Merge medio
- 10m
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DojoCodingLabs/hermit
-
docs good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
DojoCodingLabs/hermit#73 ·
I maintainer di solito rispondono entro 1 giorno
-
device-lab
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DojoCodingLabs/hermit#45 ·
I maintainer di solito rispondono entro 1 giorno
-
device-lab
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
DojoCodingLabs/hermit#44 ·
I maintainer di solito rispondono entro 1 giorno
-
device-lab
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DojoCodingLabs/hermit#43 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-friendly docs good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
DojoCodingLabs/hermit#39 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di DojoCodingLabs/hermit
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
superlinked/sie#1033 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
remix-run/react-router#15838 ·
I maintainer di solito rispondono entro 1 giorno
-
area/ci bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
melgarafael/DeskcommCRM#5290 ·
I maintainer di solito rispondono entro 1 giorno