Serverless Performance Explorer
Lambda REPORT lines → cold-start rate, p50/p95/p99, memory right-sizing and cost per 1M calls.
How it works
Paste AWS Lambda REPORT log lines, JSON platform.report records or a CSV/Logs Insights export. Get cold-start rate, init and duration percentiles, memory utilisation with a right-sizing suggestion, and the cost per 1 million invocations on x86_64 and arm64 using the public Lambda prices (overridable).
- Each REPORT line (plain text or JSON "platform.report") yields Duration, Billed Duration, Memory Size, Max Memory Used and, on cold starts, Init Duration (or SnapStart Restore Duration). "Status: timeout|error" and "Task timed out after" lines mark failed invocations.
- Cold-start rate = invocations with Init/Restore Duration ÷ all invocations. Percentiles use the nearest-rank method on the observed values.
- GB-seconds per invocation = Billed Duration (s) × Memory Size (MB) ÷ 1024. If Billed Duration is missing it is estimated as ceil(Duration + Init) because INIT is billed for on-demand functions since 1 Aug 2025.
- Cost per 1M invocations = price per 1M requests + 1,000,000 × mean GB-s × price per GB-s, for x86_64 and arm64 (first pricing tier, no free tier).
- Right-sizing: suggested memory = peak Max Memory Used × (1 + headroom), rounded up to 64 MB (128–10,240 MB). Increase if peak use ≥ 90 % of the configured size; decrease if the suggestion is ≤ 75 % of it; otherwise keep. Cost estimates assume the billed duration does not change with memory (CPU scales with memory, so verify).
- CloudWatch Logs Insights exports report @memorySize/@maxMemoryUsed in bytes; values above 100,000 are converted to MB (10^6 bytes).
Sources
- AWS Lambda pricing (Amazon Web Services) retrieved 2026-10-14
- AWS Lambda standardizes billing for INIT Phase (AWS Compute Blog)
- Understanding the Lambda execution environment lifecycle (REPORT, Status, INIT_REPORT) (AWS Documentation)
- Configure Lambda function memory (1,769 MB = one vCPU) (AWS Documentation)
- Lambda telemetry API: platform.report event schema (AWS Documentation)
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Opsdeck Developer & ops workbench
One deck for CI failures, cron, traces, k8s events, API diffs, query plans and Terraform.
Related tools
- CI/CD Failure Explorer – Paste CI logs from several runs: root cause per run, grouped signatures, top causes and fixes.
How to use the Serverless Performance Explorer
Turn AWS Lambda REPORT logs into cold-start rates, duration percentiles, memory right-sizing and cost per million invocations on x86 and arm64.
What it is for
Every AWS Lambda invocation ends with a REPORT line in CloudWatch Logs: duration, billed duration, configured memory, maximum memory used and, on a cold start, init duration. Those few numbers answer most Lambda tuning questions. How often do users hit a cold start? Is the function over-provisioned? What does a million calls really cost, and would Graviton (arm64) be cheaper?
Paste REPORT lines, JSON platform.report records, or a CSV / Logs Insights export (separate functions with === function: name ===). Per function you get the cold-start rate, init and duration percentiles, memory utilisation, a right-sizing suggestion, and the cost per 1 million invocations on both architectures. Prices default to the public us-east-1 first tier (verified 2026-10-14) and can be overridden for your region.
The right-sizing advice assumes the duration stays the same when you change memory. Lambda's CPU scales with memory, so a CPU-bound function can get slower on less memory. Test before you switch.
Worked example
The first built-in example contains 34 REPORT lines for two functions, with Monthly invocations per function set to 5,000,000.
34 invocations across 2 functions: cold starts 14.7%, slowest p95 6,003 ms (image-resize); blended cost $7.41 per 1M invocations on x86_64 ($5.97 on arm64).
| checkout-api | image-resize | |
|---|---|---|
| Invocations / cold starts | 24 / 3 (12.5%) | 10 / 2 (20%) |
| Init p50 | 471 ms | 940 ms |
| Duration p50 / p95 | 75 ms / 316 ms | 1,537 ms / 6,003 ms |
| Memory configured / peak | 1024 MB / 189 MB (18%) | 512 MB / 489 MB (96%) |
| Cost per 1M (x86 / arm64) | $2.89 / $2.35 | $18.27 / $14.66 |
| Recommendation | decrease to 256 MB (est. −69.8%) | increase to 640 MB |
The two functions need opposite fixes. checkout-api uses less than a fifth of its memory. image-resize is at 96% of its limit, which risks Runtime.OutOfMemory, and it had one timeout. Timed-out invocations are billed for their full duration.
The monthly figures ($14.43 for checkout-api, $91.35 for image-resize on x86) apply the 5 million invocations to each function, as the field label and an assumption line say. If their volumes differ, analyse each function's logs separately with its own volume.
How to read the result
- Cold-start rate — invocations with an Init (or SnapStart Restore) Duration divided by all invocations. User-facing APIs feel this in their p95/p99.
- Billed mean vs duration mean — checkout-api bills 161 ms on average for 99 ms of handler time. The gap is init time, which on-demand functions are billed for since August 2025.
- GB-seconds per invocation — billed seconds × memory in GB. This drives the cost.
- Recommendation — peak memory + headroom (default 20%), rounded up to 64 MB. Increase when peak use is ≥ 90% of the configured memory, decrease when the suggestion is ≤ 75% of it, otherwise keep.
- Warnings — timeouts, errors, and small samples where percentiles are unreliable.
Tips and common mistakes
- Collect at least a few hundred invocations per function. With 10 samples, p95 is just the second-slowest call.
- Before cutting memory, run AWS Lambda Power Tuning or a load test. At 1,769 MB a function gets one full vCPU, and below that CPU shrinks proportionally.
- Compare the arm64 column before anything else. It's usually the cheapest change if your dependencies have arm64 builds.
- Logs Insights exports report memory in bytes. Values above 100,000 are converted automatically, but don't mix units within one CSV.
- Override the prices if you run outside us-east-1 or have savings plans. The free tier isn't deducted.
- For cold starts, look at init p50, not just the rate. A 940 ms init (image-resize) hurts more than a frequent 100 ms one.
FAQ
How do I get the REPORT lines?
They're in the function's CloudWatch log group. Filter for REPORT RequestId or export with Logs Insights (filter @type = "REPORT") and paste the CSV.
Is init time billed?
For on-demand functions, yes: since 1 August 2025 AWS bills the INIT phase. When Billed Duration is missing, the tool estimates it as duration plus init, rounded up.
Why is the arm64 cost lower?
The default arm64 price per GB-second is about 20% lower than x86_64. Actual savings also depend on whether your code runs as fast on Graviton.
Does the cost include the free tier?
No. Costs use the first pricing tier without free-tier deductions, so small workloads may cost less than shown.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://serverlessperformanceexplorer.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://serverlessperformanceexplorer.usefulweb.site/mcp· tool nameserverless_performance_explorer
Example request
curl -s -X POST https://serverlessperformanceexplorer.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{…see OpenAPI examples…}'