test-parallelism

command
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 5 Imported by: 0 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

Command test-parallelism prints the -p `make preflight` gives its test and race stages, so one run cannot saturate a machine other sessions share (iss-2610102020442624): twice the online cores less the one-minute load, never more than the cores and never fewer than a quarter of them (implement.PreflightParallelism, machineload.GoTestParallelism). Each stage runs it as it starts, so the number reflects the load at that moment. On a CI runner, or where the machine cannot be read, it prints go's own default, GOMAXPROCS.

Usage: go test -p "$(go run ./cmd/test-parallelism)" ./...

It is developer tooling, never part of a release: it prints one number and a newline, reads the machine once, writes nothing and exits 0.

Jump to

Keyboard shortcuts

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