stability-test

command
v0.3.1 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: ? 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

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