measurement

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package measurement supplies allocation measurements and race-mode metadata for tests. It is not imported by production queue execution.

Index

Constants

View Source
const RaceEnabled = false

RaceEnabled reports whether the tests run under the race detector.

Variables

This section is empty.

Functions

func AllocsPerRun

func AllocsPerRun(runs int, operation func()) float64

AllocsPerRun measures allocation cost with testing's warmup and serial runner. RaceEnabled lets callers retain their explicit pool-variance tolerance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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