Skip to content

chore(bench): add opencode-core, lobehub, and sentry to benchmark catalog - #1130

Merged
maschwenk merged 1 commit into
mainfrom
bench/add-opencode-lobehub-sentry
Nov 29, 2026
Merged

maschwenk merged 1 commit into
mainfrom
bench/add-opencode-lobehub-sentry

Conversation

@maschwenk

Copy link
Copy Markdown
Collaborator

the catalog only had one Effect-heavy app (t3code-server) and nothing above ~20k files. adds opencode-core (packages/core of anomalyco/opencode, Effect 4, installed via pnpm dlx bun@1.4.4 with a composite: false overlay like date-fns), lobehub (tsconfig.type-check.json, Next.js/Drizzle/tRPC/antd, with a committed pnpm-lock.yaml overlay since upstream sets lockfile: false), and sentry (root tsconfig.json, pre-building its three referenced declaration packages with typescript@7.1.0-beta), plus committed tsgo snapshots and estimated determinism shard weights.

all three exit 0 with 0 errors on tsrs, tsrs --fast, and pinned tsgo 7.1.0-beta, and pass all 72 new determinism comparisons at 8 checkers (at 18 checkers with Go assignment, both tsrs and tsgo report one extra TS2322 in lobehub's queryByIds.ts, while 8, 12, and 16 checkers are clean on both). a cold bench.mjs prepare of all three in a linux/amd64 node 24 container with no bun took 150s.

project commit files lines symbols tsgo tsrs tsrs --fast
opencode-core d1d46b9 3,070 732k 6.5M 2.85s, 3.2 GiB 1.22s, 1.2 GiB 1.10s, 2.1 GiB
sentry 8dd7ca9 14,339 2.27M 7.8M 5.53s, 4.9 GiB 2.25s, 2.0 GiB 1.31s, 2.2 GiB
lobehub 06fb3c2 32,839 4.63M 19.2M 19.65s, 13.5 GiB 13.85s, 4.3 GiB 11.97s, 6.4 GiB

local medians are rough (5 runs, 3 for lobehub, M3 Max under load). lobehub is now the heaviest catalog project (~4 GB node_modules, ~13.5 GiB tsgo peak near the 16 GB CI runner limit, ~5.5 min local determinism run) and also an interesting perf target since tsrs is only ~1.4x-1.6x faster there

Pin three large current TypeScript codebases at their 2026-11-28 HEADs:
opencode packages/core (Effect-heavy, installed through pnpm dlx bun),
lobehub tsconfig.type-check.json (33k files) and sentry's root tsconfig.

opencode's overlay disables composite, which --incremental false rejects
(TS6379). lobehub ships without a lockfile, so its overlay commits one and
the install reads it with --frozen-lockfile. sentry's install builds the
three referenced packages it consumes as declarations with TypeScript
7.1.0-beta.

tsgo, tsrs and tsrs --fast report 0 errors on all three; tsgo snapshots
added and the determinism matrix passes at 4 and 8 checkers.
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Performance change vs main

Workflow run · main a43e95edc395 → PR merge b6a58a9204ef (head f7abcc7f11c2)

Clef gate: Running benchmarks because the decision was unavailable (GitHub did not provide a patch).

The main and PR tsrs release binaries are byte-for-byte identical. No compiler performance difference to measure.

tsrs-lint

The main and PR tsrs-lint binaries are byte-for-byte identical. No lint performance difference to measure.

@codspeed

codspeed Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

Warning

oxc-project has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 8, 2026 to keep using CodSpeed.

1 warning

⚠️ 4 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 8 untouched benchmarks
⏩ 8 skipped benchmarks1


Comparing bench/add-opencode-lobehub-sentry (f7abcc7) with main (a43e95e)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@maschwenk
maschwenk marked this pull request as ready for review November 29, 2026 04:46
@maschwenk
maschwenk added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit 964cc61 Nov 29, 2026
36 checks passed
@maschwenk
maschwenk deleted the bench/add-opencode-lobehub-sentry branch November 29, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant