Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,34 @@ Pinned k6: `grafana/k6:1.8.2` (`make k6-version`). First `make up` compiles Exci
| [scenarios/](scenarios/) | Named profiles |
| [reports/](reports/) | Checked-in reports + template |

## Recorded overhead and long-run behavior

**Historical measurements on core/agent 0.1.0, not current-version performance claims.**
These figures show the saved November 6–8 runs and their recorded configurations.

![Historical overhead A/B: latency and container CPU](reports/overview/overhead.svg)

Each runtime has its own off/on pair at 20 requests/s, depth 48 and sample rate 0.1.
Worker configurations differ; this is not a cross-runtime ranking. Sources:
[FPM](reports/2026-11-06-overhead-depth48-cloud.md),
[RoadRunner](reports/2026-11-07-overhead-rr-agent-depth48-cloud.md),
[Swoole](reports/2026-11-07-overhead-swoole-agent-depth48-cloud.md).

![Historical six-hour container memory observations](reports/overview/soak-memory.svg)

All saved observations from completed six-hour depth-48 soaks are shown, including startup.
Changes between **first-hour and last-hour average** app-container usage were FPM **+3.6 MiB**,
RoadRunner **+3.4 MiB**, and Swoole **+1.9 MiB**.
RoadRunner is the November 8 rerun **after reusing one profiler per worker**; the earlier
per-request-construction run (~+1 GiB / 6h) is not included or retained in these artifacts.
These are **container memory usage**, not PHP process RSS. The small increases do not establish
a process leak, prove leak freedom, or replace the separate 72-hour test. Sources:
[FPM](reports/2026-11-07-soak-fpm-agent-depth48-cloud.md),
[RoadRunner](reports/2026-11-08-soak-rr-agent-depth48-cloud.md),
[Swoole](reports/2026-11-07-soak-swoole-agent-depth48-cloud.md).

Each report also has its own figure. See [plot reproduction and provenance](docs/report-plots.md).

## Layout

```
Expand Down
52 changes: 52 additions & 0 deletions docs/report-plots.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Saved-report figures

The figures visualize existing evidence. Generating them does not run benchmarks, contact the
soak server, change measurements, or make old results evidence about a newer release.

Requires Python 3 and optional Matplotlib (3.10.8 used for the committed SVGs):

```bash
python3 scripts/plot-reports.py
python3 scripts/plot-reports.py --check
```

`--check` rerenders and verifies the exact figures, source hashes, derived numbers, embedded report
links and [provenance index](../reports/plot-manifest.json). Each measured report and its nested
raw-report Markdown use the same figure. The existing function-share plot has its separate
[reproduction command](../scripts/share-accuracy/README.md).

## Sources and semantics

- Overhead: baseline/on k6 quantiles and unfiltered container CPU/memory CSVs. Each arm's time axis
starts at its own first sample; the arms are not simultaneous observations. No error bars or
statistical certainty are inferred from one A/B pair. Lower latency in one arm can be noise.
- Soak: every saved container CPU/memory observation, including startup. Container memory usage is
not per-process RSS, and a rising or flat curve alone does not identify or exclude a leak. The
six-hour overview shows all three runtimes, with changes between first-hour and last-hour
mean app-container usage of
+3.6 MiB (FPM), +3.4 MiB (RoadRunner), and +1.9 MiB (Swoole). The November 8 RR data is the
rerun after the stand switched to one profiler per worker (commit `8f7e372`); the earlier
~+1 GiB / 6h run with per-request construction is not checked in or plotted. Original
historical verdicts/tables are retained; these figures do not certify them as leak tests.
- Spool/chaos/pipeline: saved file/byte counts. Claim/temp counts are a separate series, not added
to the spool count. Dashed limits are soft admission settings decoded from the saved health
response, never a hard disk bound. Some archived health files contain build output rather than
JSON; their limit is omitted instead of invented. Catch-up seconds come from the saved scalar
restart measurement, not a fitted drain curve.
- Signal weights: native/profile/spool counts and encoded/backend nanoseconds converted using
the recorded sampling period. This visualizes total event conservation, not function-share
accuracy or overhead.
- Deferred OTel research: all seven matched OTel/batched ratios at each depth/frequency, with
their paired medians. Total CPU includes final flush; work-only wall time excludes it. These
descriptive pairs are not confidence intervals or the cost of a shipped feature.
- The laptop smoke example has no raw k6 artifact. Its chart explicitly uses the approximate
quantiles printed in the Markdown; it is illustrative wiring evidence, not a cloud benchmark.

Time-series lines connect saved observations without smoothing. Gaps greater than three times
the median positive sample interval are left blank. CPU is Docker's container percentage
(100% corresponds to one CPU), memory is shown in MiB (2^20 bytes). Historical pre-fix plots
carry historical labels and point to their original source/version context.

The README selections are the recorded overhead A/B pairs and completed six-hour container
memory observations. They are deliberately not labelled as current overhead or "no leaks".
New measurements should replace or supplement these panels only after their evidence is reviewed.
8 changes: 8 additions & 0 deletions reports/2026-11-03-chaos-pyroscope-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ Methodology: [METHOD.md](../METHOD.md) layer B. Raw artifacts: [2026-11-03-chaos
## Verdict

Backend degradation does not take down request path: latency toxic on Pyroscope made delivery stall and spool grow, while `/work` stayed healthy. Aligns with fail-open / spool architecture.

<!-- saved-results-plot -->
## Recorded results at a glance

![Recorded results](2026-11-03-chaos-pyroscope-cloud/results.svg)

Historical saved measurements on the versions/configuration in this report; no current-version performance claim. Lines connect recorded samples; gaps over three typical intervals are not connected.
<!-- /saved-results-plot -->
8 changes: 8 additions & 0 deletions reports/2026-11-03-chaos-pyroscope-cloud/chaos-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@
| HTTP fail rate | 0 |

App requests should remain healthy while delivery slows and spool grows.

<!-- saved-results-plot -->
## Recorded results at a glance

![Recorded results](results.svg)

Historical saved measurements on the versions/configuration in this report; no current-version performance claim. Lines connect recorded samples; gaps over three typical intervals are not connected.
<!-- /saved-results-plot -->
Loading
Loading