[codex] Add VM benchmark baselines#444
Merged
Merged
Conversation
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
Adds additive benchmark baselines for
vm-perf-bench-v2without changing VM runtime code.packages/doeff-vm-core/benches/for perform/resume at depth 1 and depth 8 reperform, Resume vs Transfer, fiber create/return, and raw step throughput.benchmarks/benchmark_runner.pyinto Python end-to-end benchmark cases with JSON output, smoke mode, and baseline comparison.benchmarks/results/20260611-CA-20035844.json.make bench-smokeand a Python 3.12 CI smoke step with no performance gating.README.md.Reference:
vm-perf-bench-v2.Python Baseline
Machine:
CA-20035844, macOS arm64, Python 3.14.3, 20 runs.Verification
make bench-smokepassed.uv run python benchmarks/benchmark_runner.py --runs 20passed and wrotebenchmarks/results/20260611-CA-20035844.json.PYO3_PYTHON=/Users/s22625/.orch/worktrees/vm-perf-bench-v2/6f8ba6_codex_20260611-185233/.venv/bin/python cargo bench --features python_bridge --bench dispatchpassed.uv run python benchmarks/benchmark_runner.py --smoke --no-output --compare benchmarks/results/20260611-CA-20035844.jsonpassed.uv run ruff check benchmarks/benchmark_runner.py tests/test_benchmark_runner.pypassed.uv run ruff format --check benchmarks/benchmark_runner.py tests/test_benchmark_runner.pypassed.uv run pytestpassed: 838 passed, 84 skipped.Note:
cargo fmt --checkacrosspackages/doeff-vm-corestill reports pre-existing formatting diffs insrc/vm/step.rs; this PR only rustfmt-formatted the new bench file (rustfmt --check packages/doeff-vm-core/benches/dispatch.rspassed).