httpload

command
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 12 Imported by: 0 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.

Documentation

Overview

Command httpload is an HTTP load generator + integrity checker for a *running mqlite broker*. Unlike test/bench (which drives the embedded engine, no network), this drives the real wire path — the client SDK over HTTP + Bearer auth — so it measures the broker end to end. It is the reproducible harness behind the MQLITE-50/53 work: run it once for a baseline, apply a change, run it again, and diff the SUMMARY line.

Each run does, against one queue (default `bench-load`):

  1. a single-connection latency probe (send, and send→receive→complete) — the RTT floor;
  2. a SEND phase — conc workers send -n messages (or for -dur when -n is 0);
  3. a DRAIN phase — conc workers Receive≤50 then CompleteBatch, until empty.

It drains any leftover backlog first and reports p50/p95/p99/max per op plus a SUMMARY line. With -verify, every message carries its index and the drain asserts each is received exactly once — INTEGRITY=OK/FAIL with missing (data loss) and duplicated (double delivery) counts, plus a final queue-state line.

Usage:

MQLITE_TOKEN=mqk_… go run ./test/bench/httpload -endpoint http://127.0.0.1:6754 -conc 32 -dur 10s
MQLITE_TOKEN=mqk_… go run ./test/bench/httpload -endpoint http://127.0.0.1:6754 -conc 32 -n 20000 -verify

Note on Fly: driving a Fly broker from far away is network-RTT-bound (the numbers measure distance, not the broker). For true capacity run this co-located in the same region as a one-off Fly app, pointing at the broker's PRIVATE address (http://<app>.internal:6754) — the public address hairpins through the edge and hangs.

Jump to

Keyboard shortcuts

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