Guides / Ferrum Anvil / Load Tests

Load Tests

Load runs send the same requests as Send, through the same engine, from a separate worker process, and report what happened without averaging it away.

Ferrum Anvil v0.1.9 is an unsigned preview. Verify downloads with SHA256SUMS. macOS installers are not Developer ID signed or notarized and Windows installers have no code-signing certificate. In-app updates use verified minisign signatures; this does not code-sign the installers. See the preview downloads and Anvil overview.

Only Load What You May Load

  • Every run needs an explicit acknowledgement. Before starting, Anvil shows the destinations, the unit it measures, the workload and its planned duration, and asks you to confirm that you own or are authorized to test them (tests cover the confirmation and the destinations and unit the plan check reports, not the dialog’s rendering). Start stays disabled until you acknowledge.†
  • Imported load plans are untrusted and never start automatically.
  • An abort rule can stop a run when the failure ratio in a trailing window crosses a threshold; the report is then marked partial.†

Pick the Model That Matches the Question

WorkloadHow it behaves
Open (arrival rate)Arrivals are scheduled independently of response time. When max_in_flight is reached, an arrival is dropped and counted, never queued, and start lag is measured.
Closed (virtual users)Each user waits for its response before the next iteration, so slower responses lower the rate. These reports never claim a sustained arrival rate.
Iterations†A fixed count over a bounded number of lanes. Slower responses lengthen the run instead of dropping work (not tested).†

Stages ramp linearly. Each iteration runs a weighted mix or a chain of saved requests, with optional CSV or JSON datasets and a warmup period that is excluded from summary metrics but kept, flagged, in the timeline.

One Protocol, One Unit

Every step of a plan is one call through the same engine path as a manual Send, and produces one unit. What a unit is, and what counts as success, depends on the request's protocol.

ProtocolOne unit isSuccess meansCounts reported
HTTP/1.1, HTTP/2, HTTP/3 (no load test checks HTTP/2)†One request and its response. Redirects, retries and an HTTP/3 to TCP fallback are attempts inside it (tests cover the fallback).†Status below 400, no SOAP fault or GraphQL error, and assertions passStatus codes; fallback attempts, requests with a fallback and requests over HTTP/3. A fallback's time is part of the request's latency.†
Unary gRPC (native over HTTP/2 or HTTP/3, and gRPC-Web; gRPC-Web is load-tested only as binary calls over HTTP/1.1)†One callStatus 0 and assertions pass (assertions not exercised under load); HTTP 200 alone never countsCalls by status code, OK and non-OK, and calls with a missing status. A missing status is incomplete, never success. A deadline that elapsed locally is a timeout, never reported as DEADLINE_EXCEEDED.
Server-streaming gRPC and gRPC-Web (gRPC-Web streams are built but not exercised under load)†One streamThe server ended it with status 0, and assertions pass (assertions not exercised under load)Streams opened, messages received, streams with messages, time to first message, and the status codes
Client-streaming gRPC (native, over HTTP/2; built for HTTP/3 but not exercised under load)†One call: the request's scripted messages, a half-close, then the reply†Status 0 after the half-close, and assertions pass (assertions not exercised under load)†As for server streams, plus the messages sent†
Bidirectional gRPC (native, over HTTP/2; built for HTTP/3 but not exercised under load)†One stream: the scripted messages and a half-close while the server's messages are read†The server ended it with status 0, and assertions pass (assertions not exercised under load)†As for server streams, plus the messages sent. No round trip is claimed, because a server message is not paired with a sent one.†
Server-sent events†One stream†A 2xx event stream, and assertions pass (assertions not exercised under load)†Streams opened, events received, time to first event, and how each stream ended: by the server, by Anvil (the request's event limit), by an idle timeout, or abnormally (only the first two are exercised under load)†
WebSocket (HTTP/1.1 Upgrade; the HTTP/2 and HTTP/3 bootstraps are built but not exercised under load)†One session: the handshake, the request's scripted messages, then the closeHandshake accepted, closed with 1000, 1001 or no code (tests cover 1000), and assertions pass (assertions not exercised under load)Sessions opened, handshakes rejected, sessions not opened (tests cover opened and rejected), sessions closed cleanly, messages sent and received, and close codes by who closed. Round-trip times only when the request expects replies (expect_messages).†
TCP (TCP+TLS is built but not exercised under load)†One connection carrying the request's frames†Completed, the expected frames arrived (with a framing preset), and assertions pass (assertions not exercised under load); fewer frames is an application failure†Connections, frames and payload bytes each way, expected frames met or short, partial trailing frames, and peer closes†
UDP, DTLS, direct or through a CONNECT-UDP (MASQUE) or HBONE datagram tunnel (DTLS through CONNECT-UDP is built but not exercised under load)†The request's datagrams, then its response window (for DTLS, after a handshake; through a tunnel, after the exchange's own tunnel opened)†At least one datagram received, and assertions pass (assertions not exercised under load)Datagrams sent and datagrams received, as separate counts; exchanges with a response and with no response observed; echoed and repeated payloads; ICMP unreachable; for DTLS, handshakes attempted, completed, failed and timed out, with their duration (tests cover completed handshakes only); and through a tunnel, tunnels attempted, established, refused by the proxy, failed and timed out, with their setup time. An exchange whose tunnel did not open is incomplete, never “no response observed”.†
  • A plan measures exactly one kind of unit, so every count, rate and percentile in its report has one denominator. The load editor and anvil load check name the unit and its definitions before a run (tests cover the editor’s definitions and the unit anvil load check names).†
  • A UDP or DTLS exchange with nothing received is “no response observed”: neither a success nor a failure, and it has no latency. A datagram sent is never counted as delivered, and the received-to-sent ratio is labelled an observation, not a delivery rate.†
  • Connection modes. For HTTP requests and gRPC calls and streams, persistent keeps pooled connections per virtual user (for gRPC, one pooled channel per destination) and fresh opens a connection per unit. SSE streams, WebSocket sessions, TCP exchanges and UDP/DTLS exchanges always open their own connection or socket, and the plan check and the report say the connection mode does not apply to them.†
  • Each unit runs the automation path of its request: the script, stop conditions, idle close and total deadline apply. Commands typed into a live interactive session have no load equivalent.

Checked against the real gateway

The lab's streams profile runs short, low-rate gRPC, WebSocket and UDP load plans through a real Ferrum Edge gateway, with recorded load runs on 0.9.7 and 0.9.5, and compares Anvil's counts with independent ground truth: the backend's own logs and, for gRPC and WebSocket, the gateway's logs.

Refused Before Any Traffic

Combinations without a defined unit, and gRPC calls no send could succeed with, are refused when the plan is checked, with a typed reason. The editor shows it and the run cannot start.

RefusedWhy
Plans that mix protocols, such as an HTTP login followed by a WebSocket sessionTheir counts and latencies have different denominators. Split the plan per protocol.
Client-streaming and bidirectional gRPC-WebgRPC-Web has no client stream, so these calls cannot be made at all. Native gRPC client-streaming and bidirectional calls are load units.
Other gRPC calls the engine refuses on every send, when the URL parses: native gRPC with the HTTP/1.1-only policy; gRPC or gRPC-Web over HTTP/3 with a cleartext URL or through a proxy; gRPC-Web with h2c and a TLS URL, or HTTP/2-only and a cleartext URLNo send could succeed, so the plan is refused with the engine's own reason instead of running.
gRPC requests with no gRPC call configuredThere is no call to make, so there is no unit. A service or method missing from the schema, or a schema that does not load, is not caught here: it fails on each send.
MCP requestsOne execution is a whole MCP session, and there is no MCP load unit yet. Load test the endpoint's HTTP requests instead.
gRPC with server reflectionEvery call would first run a reflection call, so a unit would not be one call. Import the .proto files or a descriptor set instead.
SSE with automatic reconnectReconnection turns one stream into several connections with server-chosen delays.
Datagram plans that mix direct sends with a tunnel, or a CONNECT-UDP (MASQUE) proxy with an HBONE tunnelThe tunnel counts would cover only part of the units, and a tunnel's setup changes what an exchange costs. Split the plan per path.
UDP or DTLS through a CONNECT-UDP (MASQUE) proxy while a proxy profile routes the requestThe MASQUE proxy is reached over QUIC, which HTTP CONNECT, SOCKS5 and HBONE tunnels do not carry, so every exchange would be refused.
Requests with 0-RTT early dataHandshakes that share session tickets are serialized, and the report has no early-data counts.
HTTP or gRPC through an HBONE proxy in persistent modeTunnels carry one execution's identity and are never pooled, so persistent mode could not be honoured. Fresh mode is allowed.

The gRPC combinations above are refused when the plan is checked, so their runs never start. Other failures are not caught by the plan check and fail on each send before any bytes are written: combinations the engine refuses for any send, such as UDP through an HTTP or SOCKS5 proxy; a gRPC service or method missing from the schema, or a schema that does not load; and a URL that does not parse. They are local failures in the report, never successes, and an abort rule can stop such a run early.

A Separate Worker, the Same Engine

  • Each send is the same call as a manual Send: variables, auth, TLS policy and diagnostics included. HMAC nonces, DPoP proofs and JWT time claims are fresh for every send (DPoP proofs and JWT time claims are not exercised under load), and concurrent sends share one OAuth token refresh each time the token expires.†
  • The desktop app launches its own executable as the load worker and passes the job over stdin, never on the command line or in the environment (tests cover stdin and that neither the job nor a secret is on the command line; the environment is not tested). The job carries only the secrets its requests reference.†
  • Cancel stops scheduling and drains in-flight sends. If the app goes away, the worker stops. If the worker crashes, Anvil rebuilds a partial report from the last progress snapshot and says what is unknown.
  • Locking Anvil stops load workers; partial reports are kept.

Reading a Report

Ferrum Anvil load report for a completed run named E2E smoke load: 300 iterations started and 300 requests completed, with no transport failures, timeouts, application failures or assertion failures. It names the load unit (HTTP requests) and defines what completed, success and latency mean, counts HTTP/3 fallback attempts separately, and shows latency percentiles for successful sends, status code counts, no failure categories, JSON, CSV, Timeline CSV and HTML export buttons, a collapsed load generator health section, and notes explaining the workload model, the connection mode and how latency is measured.
Pre-release build. The figures come from an automated smoke run of 300 requests against a local test server on the same machine. They are not a benchmark.
  • Balanced counts. Scheduled, dropped, started, completed, failed, timed out, canceled and still-in-flight always add up, for iterations and for units. The protocol counts balance against the unit counts too, and a report that does not balance says so.
  • Latency covers connect to last body byte for requests and calls, and until the end for streams and sessions. For UDP and DTLS exchanges it is the time to the first response instead, because an exchange always waits out its response window. Local preparation and token acquisition are reported separately as setup time.†
  • Timeouts are censored: counted, but kept out of the latency distributions because their true latency is unknown.
  • Percentiles come from merged HDR histograms, never from averaged per-worker percentiles. Success and failure latencies are separate.
  • A protocol section shows the unit's definitions and its counts, labelled with the unit's own nouns: gRPC status codes with their names, streams and sessions, close codes by who closed, round trips or “not defined”, frames, datagrams and DTLS handshakes.†
  • Generator health reports the worker's own CPU, memory and descriptors. For open workloads, a run that could not keep its schedule is marked “target not achieved”; that says nothing about the target's capacity. Generator health needs a Unix platform, so it is unavailable on Windows.
  • Failure samples are bounded and built from redacted records, without response bodies.
  • Exports: JSON sealed with an integrity hash, CSV guarded against spreadsheet formula injection, and a self-contained HTML report with no scripts.†
  • Comparison refuses runs of different load units, such as HTTP requests against WebSocket sessions. For the same unit, it withholds latency deltas when two runs are not comparable, for example a different workload model, connection mode or request set, and says why.

What Load Tests Do Not Cover Yet

  • The combinations in the refusal table cannot be load tested: they are refused before a run starts.
  • No load action holds sessions open while sending messages at a rate. A WebSocket unit is connect, scripted messages, close.
  • WebSocket round trips pair each scripted message with the reply in the same position, so they fit echo-style exchanges. A session whose reply arrives before its message is counted as unpaired and adds no round trip (not tested).†
  • HTTP/3 with the automatic policy tries QUIC again for every request. Each failed attempt is counted, and its time is part of the request's latency.†
  • Load through an HBONE tunnel in fresh mode is allowed for TCP-based protocols but has not been exercised under load (the HBONE load test sends UDP and DTLS). Nor have WebSocket over HTTP/2 or HTTP/3, TCP+TLS exchanges, streaming gRPC over HTTP/3, gRPC fallback from HTTP/3, gRPC-Web in text mode, over HTTP/2 or HTTP/3, or as server streams, DTLS through a CONNECT-UDP tunnel, and PROXY protocol headers over TCP: all are built for load units, but no load test covers them. No load test checks HTTP requests over HTTP/2, and the UDP datagram envelope is load-tested.†
  • Message counts per stream or session are reported as totals, with a mean per opened gRPC stream (the mean is not tested), not percentiles.†
  • One worker process per run on one machine; no distributed load.
  • No JMeter adapter.