stability-test

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

stability-test — long-running leak + regression detector.

Opens a capture stream, pulls frames continuously, periodically closes and reopens the stream, and watches heap + reported frame rate. Exits non-zero if it detects:

  • Heap growth > 50 MB between the first and last sample
  • Average frame rate drops below 80% of target
  • Any NextFrame error other than ctx.Canceled

Pre-release gate: `make stability-test` runs this for 24 hours and is a v0.1.0 quality gate. Short runs (-duration 5m) are useful in dev to catch obvious leaks.

Usage:

go run ./cmd/stability-test                      # default: 10 min
go run ./cmd/stability-test -duration 24h
go run ./cmd/stability-test -duration 1h -fps 30 -reopen 5m

Jump to

Keyboard shortcuts

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