benchorder

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package benchorder runs benchmark workloads in an explicit seeded order. The order does not depend on unrelated tests registered in the package.

Index

Constants

View Source
const SeedEnv = "GTS_BENCHMARK_SEED"

SeedEnv is set once per process by scripts/run_randomized_benchmarks.sh.

Variables

This section is empty.

Functions

func Run

func Run(b *testing.B, cases []Case, seed int64)

Run invokes each workload once in seeded order. Each subbenchmark retains testing.B's normal calibration, timers, and memory accounting. The caller supplies the seed; this support package reads no process settings.

Types

type Case

type Case struct {
	Label string
	Run   func(*testing.B)
}

Case is one independently timed benchmark workload.

Jump to

Keyboard shortcuts

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