1mb

build with

lobster

Crawler and load tester for your site

get lobster docs

From a base URL, lobster follows same-origin <a href> links to depth 3, at 2 requests per second by default. With -load it replays the pages that answered 200-399 at a fixed rate, up to 1000 per second.

The 99% success target is the only one on by default. Response-time targets come from a -config file. Exit code 0 is a pass, 1 a fail, 2 a refusal or an error.

It runs no JavaScript, so a link a script adds is never found. -load against a public host needs -i-own-this and LOBSTER_I_OWN_THIS set to that host.

Install with go install github.com/1mb-dev/lobster/v2/cmd/lobster@latest.

why it exists

Checking a site meant one tool to find its pages and another, fed a URL list, to time them.

lobster takes a base URL and does the discovery and the testing in one run. A run leaves a PASS or FAIL per enabled target and an exit code a CI step can stop on.

what it taught

A request rate is only honest if requests go out on schedule and latency is timed from when each was due. Sent that way, a slow server shows in the latency rather than lowering the rate. At most 256 requests are in flight at once, and one still unsent when the load ends fails the run.

get lobster

related

all work