Skip to content

Measure the MicroVMs beside the functions - #14

Merged
NimmLor merged 2 commits into
mainfrom
ln/epic-gauss-3dn3e3
Nov 1, 2026
Merged

NimmLor merged 2 commits into
mainfrom
ln/epic-gauss-3dn3e3

Conversation

@NimmLor

@NimmLor NimmLor commented Nov 1, 2026

Copy link
Copy Markdown
Owner

PerfRun ran the Functions map, then the Microvms map. Now a MeasureAll Parallel state runs both maps as branches, and RecordRun and Summarize follow it. A run now takes as long as the slower of the two branches instead of both added together.

  • MeasureAll sets output: {}, so RecordRun doesn't receive the branches' result array. RecordRun and Summarize still get runId from $states.context.Execution.StartTime, which is the same inside a Parallel branch.
  • The transform that sets ToleratedFailurePercentage = 100 now finds each map inside MeasureAll's Branches instead of at the top level. A failed child still doesn't fail the run.
  • MicroVMs still run one size at a time because of the 8 GB account quota. The old comment said they ran after the functions to keep load off Lambda's control plane. MicroVM rounds call RunMicrovm, CreateMicrovmAuthToken and TerminateMicrovm, not UpdateFunctionConfiguration, so they shouldn't count against the 15 requests/s quota the function rounds use. I couldn't confirm this before deploying, so check the first run's MicroVM round trips and the function rounds for throttling.
  • Updated the header comment in infra/perf.ts and the README's MicroVM section.

Checks: bun run typecheck, bun lint --max-warnings 0 (canary), bun fmt --check and bun test pass. Not deployed yet.


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DdeTv4cPwDfQsZ532GvS9G
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DdeTv4cPwDfQsZ532GvS9G
@NimmLor
NimmLor marked this pull request as ready for review November 1, 2026 11:11
@NimmLor
NimmLor merged commit 0fe82e5 into main Nov 1, 2026
3 checks passed
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.

2 participants