edgeperf

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

edge-perf

A build-tagged (edgeperf) performance/load harness for the edge category. It measures reality and logs numbers (it does not gate CI), patterned on examples/scada-spike. It runs an embedded NATS with an in-process backend thrall and drives load through the real edge data path via httptest.

Run

scripts/edge-perf.sh            # all scenarios
scripts/edge-perf.sh ingress    # HTTP ingress call/cast + baseline
scripts/edge-perf.sh ceiling    # serialized-backend ceiling sweep
scripts/edge-perf.sh sse        # SSE push fan-out

Or directly: go test -tags edgeperf -run TestEdgePerf -v ./examples/edge-perf/ (GOTOOLCHAIN=local, or via mise exec go@latest -- go).

What it measures

  • HTTP ingress (call/cast): req/s and p50/p99, vs a bare net/http baseline - the delta is the aether-layer cost.
  • Serialized-backend ceiling: a concurrency sweep against one thrall, with a trivial handler (mailbox is not the bottleneck) and a ~500 µs handler (mailbox is the ceiling).
  • SSE push fan-out: N clients on one stream, event→client throughput and latency plus drops.

Numbers are indicative and machine-dependent. See REPORT.md for a measured snapshot and its interpretation. It is not a contest with a web framework - see the framing there.

The harness is excluded from normal builds/tests by the edgeperf build tag, so go test ./... never runs it.

Documentation

Overview

Package edgeperf is a build-tagged (edgeperf) performance/load harness for the edge category. It measures reality - HTTP ingress and SSE-push throughput and latency, the serialized-backend ceiling, and the cost of the aether layer against a bare net/http baseline - and is excluded from normal CI.

It is NOT a contest with a web framework: an aether edge is an HTTP->ether->genserver bridge, so it will always be slower than a bare handler because it does more (a NATS round-trip + a serialized mailbox + envelope). The numbers here are the absolute figures, the layer cost, and where the ceiling sits, on this machine.

Run it with scripts/edge-perf.sh (or `go test -tags edgeperf -run TestEdgePerf ./examples/edge-perf/`). See REPORT.md for a measured snapshot.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL