Skip to content

SimBench: odr bench, share card, self-reported intake, runner matrix - #1

Open
ninan-versioning wants to merge 10 commits into
mainfrom
feat/simbench
Open

ninan-versioning wants to merge 10 commits into
mainfrom
feat/simbench

Conversation

@ninan-versioning

Copy link
Copy Markdown
Contributor

Outcome

odr bench (SimBench): any Mac or Linux box measures nothing-to-first-app-frame for a simulator or emulator, cold and warm, plus a parallel ramp on iOS. It writes a simbench/v1 JSON file and a 1200x630 share card. Nothing leaves the machine unless the user runs odr bench submit.

What is in this PR

  • src/bench/: simctl and emulator/adb drivers (no agent-device needed), fixture-frame detection, run logic, PNG encoder and share card, validator.
  • odr bench | bench card | bench submit | bench validate.
  • bench/schema/simbench.schema.json: the environment block is closed, so a file carrying a hostname, username, serial or UDID fails validation. The validator also recomputes the summary from raw samples, so an edited headline number fails.
  • .github/ISSUE_TEMPLATE/simbench-result.yml and simbench-intake.yml: an issue becomes a PR adding one file under bench/results/simbench/self-reported/. The issue body arrives via env and is only parsed as JSON. It is never interpolated into a shell.
  • bench-simbench-matrix.yml: weekly on macos-15, macos-26 and macos-15-intel (two newest iOS runtimes each), plus ubuntu-24.04 Android. Per-session cost estimate uses the published runner rate. Publishes to main only from main; on PRs it runs as a 1-cold/1-warm smoke test.
  • summarize.mjs: separate CI-verified and self-reported SimBench tables.
  • METHODOLOGY: definitions, tiers and the parallel stop rule, written before any number is published.
  • ROADMAP: a benchmark-only post is allowed after gates 1, 3 and 4. It must not quote cloud numbers and keeps the pre-release notice.
  • README: the tagline drops "real browsers" and "$0".

Non-goals

  • iOS tap timing (simctl has no input). Android measures it.
  • Vendor-submitted tier, and any cloud provider in SimBench.
  • npm publish (separate change).

Acceptance evidence

  • npm run check passes locally (Node 20.20.2; CI uses 22).
  • Unit tests: CRC32 check value, PNG round trip, fixture detection with a Display P3 shift, flat boot frame rejected, summary recompute, tamper/identity/fake-ci-tier rejection, card size.
  • Intake dry run on a scratch copy: a valid issue body produced a file and a self-reported row. A ci-verified claim was rejected, and an edited summary failed summarize.mjs.
  • Smoke matrix on this PR: macOS iOS cold, warm and parallel 1,2; ubuntu Android cold, warm and tap.
  • One local run on a physical Mac before any post.

Release gate

No SimBench number appears on opendevicerouter.com or in a post until the weekly matrix has published from main and the numbers are in RESULTS.md.

Created with Perplexity

ninan-versioning and others added 3 commits November 23, 2026 05:47
… runner matrix

- odr bench: cold, warm and parallel (iOS) sessions to the fixture's first frame via
  simctl / emulator + adb directly; Android tap-to-change; fixture built from source
  and excluded from timings. Writes simbench/v1 JSON and a 1200x630 share card
  (dependency-free PNG encoder, 5x7 pixel font, opendevicerouter.com palette).
- odr bench card | submit | validate. submit opens a public issue only when asked.
- bench/schema/simbench.schema.json: closed environment block (no hostname, user,
  serial, UDID); validator recomputes the summary from samples.
- Issue form + simbench-intake workflow: issue -> PR into
  bench/results/simbench/self-reported/; body parsed as JSON only, never shelled.
- bench-simbench-matrix workflow: macos-15, macos-26, macos-15-intel (two newest iOS
  runtimes each) and ubuntu-24.04 Android, weekly; per-session cost estimate from the
  published runner rate; publishes to main only from main.
- summarize.mjs: separate CI-verified and self-reported SimBench tables.
- METHODOLOGY: SimBench definitions, tiers and the parallel stop rule (written before
  any number is published). ROADMAP: benchmark-only posts allowed after gates 1, 3, 4.
- README: tagline no longer claims browsers or $0; SimBench usage.

Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
ninan-versioning and others added 3 commits November 23, 2026 06:05
Co-authored-by: Perplexity <noreply@perplexity.ai>
On macos-15 and macos-15-intel, simctl io screenshot kept failing for over 60 s after
bootstatus returned, so every cold sample failed. 180 s matches the session SDK default.

Co-authored-by: Perplexity <noreply@perplexity.ai>
On macos-26 one N=2 simulator hit the 5 min bootstatus limit and the result only said
"Command failed". Errors now read "timed out after 300 s: ..." when execFile killed the child.

Co-authored-by: Perplexity <noreply@perplexity.ai>
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