sandbox-bench
Skill by vercel
Benchmarks React or Next.js changes on Vercel Sandbox VMs using paired A/B statistics. It is aimed at developers who want to know whether a React PR, Flight change or Next.js PR affects server-side performance.
Install sandbox-bench
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vercel/next.js /tmp/next.js && mkdir -p ~/.claude/skills && cp -r /tmp/next.js/.agents/skills/sandbox-bench ~/.claude/skills/sandbox-benchRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vercel/next.js /tmp/next.js && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/next.js/.agents/skills/sandbox-bench ~/.gemini/antigravity-cli/skills/sandbox-benchAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill measures the performance difference between two revisions of React or Next.js. It builds each revision into an otherwise identical Next.js app and runs the bench/render-pipeline harness on Vercel Sandbox VMs. For React changes, it also runs the react repo's flight-ssr-bench fixture, covering Node and Edge web-streams paths. Before measuring, it checks correctness gates, so a failing arm is not benchmarked. Results are compared with paired statistics, using the VM boot as the unit of replication, and reported with confidence intervals.
The skill runs remotely, so the laptop only orchestrates the runs. It is intended for developers and maintainers who need to quantify a server-side performance change between two React or Next.js commits or pull requests. The source says it is marked internal in its metadata.
Written from the project's SKILL.md and checked against it.
What it can do
- React PR benchmarkCompares a React PR or commit against its merge-base with main, or two React refs.
- Next.js PR benchmarkCompares a Next.js PR or two Next.js refs, with the React side taken from what each ref vendors.
- Correctness gateRuns the test suite on a sandbox VM before benchmarking an arm that is not already CI-green.
- End-to-end suiteMeasures rps, latency and p95 through the bench/render-pipeline app, plus document and Flight bytes when captured.
- SSR fixture suiteRuns eight flight-ssr-bench variants covering Fizz and Flight+Fizz, Node and Edge streams, sync and async.
- Paired statisticsReports boot-level means, 95% confidence intervals and p values across interleaved ABBA runs.
- CPU profilesCaptures V8 cpuprofile files per arm after the timed runs, unless disabled.
- Re-analysisRe-analyzes a past run directory without running the benchmark again.
What you need
- Vercel account with access to a configured team and project
- Vercel CLI session with access to the team
- Vercel Sandbox VMs
- Node.js to run the scripts
- Git clones of react and next.js, created on first use or set in config
Try asking
- Benchmark this React PR against its base and report significant changes
- Measure the perf impact of this Next.js commit against its base
- Does this change regress RSC performance? Run an A/B bench on both revisions
Good to know
- Results are platform-dependent; the source notes that percentages do not transfer across CPUs.
- The first run of a new pair builds caches, adding about 45 to 60 minutes.
- Each run uses 16 VMs by default and the source says this should not be reduced.
- Edge-only React changes are not exercised by the e2e suite and will show no difference.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/sandbox-bench/SKILL.md, .agents/skills/sandbox-bench/scripts/bench-analyze.mjs, .agents/skills/sandbox-bench/scripts/bench-collect.mjs, .agents/skills/sandbox-bench/scripts/bench-common.mjs, .agents/skills/sandbox-bench/scripts/bench-db.mjs, .agents/skills/sandbox-bench/scripts/bench-stats.mjs, .agents/skills/sandbox-bench/scripts/bench-status.mjs, .agents/skills/sandbox-bench/scripts/config.mjs, .agents/skills/sandbox-bench/scripts/sandbox-e2e.mjs. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md16 KB -
references/methodology.md5 KB -
scripts/bench-analyze.mjs3 KB -
scripts/bench-collect.mjs4 KB -
scripts/bench-common.mjs25 KB
Show all 13 files
-
scripts/bench-db.mjs17 KB -
scripts/bench-stats.mjs9 KB -
scripts/bench-status.mjs3 KB -
scripts/config.mjs5 KB -
scripts/sandbox-e2e.mjs36 KB -
scripts/sandbox-gate.mjs12 KB -
scripts/sandbox-ssr.mjs21 KB -
scripts/sandbox-sweep.mjs3 KB
Alternatives to sandbox-bench
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
sandbox-bench: common questions
What does sandbox-bench measure?
It measures rps, latency, p95 and, when captured, TTFB, RSS and document or Flight bytes for two revisions of React or Next.js. For React changes it also runs the flight-ssr-bench fixture.
Does it run on my laptop?
No. The source says all heavy work happens on Vercel Sandbox VMs and the laptop only orchestrates the runs.
How are results judged as significant?
The source says to claim only boot-level p below 0.01 on an A/A-validated team and config, and to report the confidence interval with the result.
How do I install sandbox-bench?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sandbox-bench free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is sandbox-bench safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to sandbox-bench?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
