Skip to content

Stress test — def-exsport-stresstest

A Go load-test tool that drives real headless browsers against the live storefront to simulate concurrent users.

How this page was verified

Read on 2026-09-15 from main.go, go.mod and the Makefile. Local checkout: /Volumes/xpro/erisristemena/golang/def-exsport-stresstest.

Stack

Go 1.24.5 (module exsport-stress-test), playwright-community/playwright-go (browser automation) and golang-set/v2. Single main.go, driven by a Makefile. Single-branch: main only.

What it does

It launches a pool of real Chromium browsers via playwright-go and runs them against the storefront as concurrent users — scrolling, triggering lazy-load, recording per-user response times, optionally taking screenshots.

Flags: -users (default 10), -duration (default 30s), -screenshot. The default target URL is hard-coded to a products page on www.exsportbags.com. Make targets scale the load: light / medium / heavy / extreme, and burst / spike / overload which are meant to trigger autoscaling — that is, they exercise the ECS autoscaling defined in the Pulumi webapp stack. Committed screenshot PNGs are sample output.

Because it points at production by default, run it only when a load test is actually wanted, and mind the target URL.