Repository navigation
docs(perf): add footprint benchmark script and performance reference - #1249
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Summary
scripts/bench-footprint.nuto measure stripped release binary size,--versionstartup latency (median and p95 across 20 runs),--versionpeak RSS (/usr/bin/time -lon macOS,/usr/bin/time -von Linux), and interactive PTY idle RSS after initial TUI render, with optional--compare(auto-detecting installedclaude,codex, andompbinaries onPATH),--criterion(ox-coreandox-tuiCriterion hot paths), and--jsonflags.docs/reference/performance.mdwith measured numbers on Apple M1 Pro (macOS 27.2.1,rustc 1.100.1), methodology, runtime and packaging context, and reproduction instructions, wired intowebsite/astro.config.tsanddocs/README.md.README.mdandwebsite/src/content/docs/index.mdx.Key Measurements (Apple M1 Pro, macOS 27.2.1, 2026-12-06)
ox(0.2.0-alpha.1): 12.45 MiB stripped binary, 7.14 ms median / 8.27 ms p95--versionstartup, 7.13 MiB--versionpeak RSS, 12.03 MiB idle 120x40 PTY TUI RSS.claude(2.1.337) 393.29 MiB / 18.56 ms / 20.28 MiB peak RSS,codex(0.174.0) 406.84 MiB / 13.49 ms / 14.06 MiB peak RSS,omp(19.4.4) 239.18 MiB / 16.20 ms / 29.84 MiB peak RSS.render_markdown_incremental_warm2.33 µs,render_populated_transcript_120x40171.12 µs,openai_responses_64b_chunks46.91 µs,anthropic_messages_64b_chunks66.13 µs,find_cut_point_48_msgs4.95 µs.Test plan
nix develop -c ./scripts/bench-footprint.nu --compare --criterioncollected all CLI footprint, startup, RSS, and Criterion hot-path medians.nix develop -c ./scripts/bench-footprint.nu --runs 3 --jsonproduced valid structured JSON output.nix develop -c run-hookspassed all 21 hooks (includingnu-check,cspell,markdownlint-cli2,prettier,dprint, andsort-file-contents).nix develop .#website -c bash -c 'cd website && pnpm run check && pnpm run build'passed with 0 errors and all internal links valid across 30 built pages.