Skip to main content

Module config

Module config 

Source
Expand description

tak.toml — declared benchmarks.

Named after the tool rather than after its current contents. It already holds more than a command list in spirit, and gates, runner classes and competitor definitions all belong here too; bench.toml would be misnamed the moment the first of those lands.

The point of declaring benchmarks is that CI and a laptop run the same thing. A command line in a workflow file drifts from the one people use locally, and the numbers stop being comparable without anyone noticing.

Structs§

Bench
Config
Subject
A subject with every default applied, ready to measure.
SubjectDecl
One program in a multi-subject benchmark, as written in tak.toml.

Constants§

DEFAULT_RUNS
Defaults chosen to match tak run’s, so moving a command into tak.toml does not silently change what it measures.
DEFAULT_WARMUP
FILE_NAME
SELF_TOOL
The name a single-command benchmark records under. compare renders this tool as the bare benchmark name.