benchgate

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package benchgate decides how a bench budget fails (D-044). Deterministic budgets fail everywhere; absolute time budgets fail only on the reference machine.

Index

Constants

View Source
const Env = "SNELLIUS_BENCH_TIMING"

Env selects the timing mode: "reference" (the default) gates, "report" logs.

Variables

This section is empty.

Functions

func Reference

func Reference(tb testing.TB) bool

Reference reports whether absolute time budgets gate in this run.

func Timing

func Timing(tb testing.TB, format string, args ...any)

Timing fails tb on the reference machine and logs the miss in report mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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