Features
DSL feature reference — suites, setup, benchmarks, fixtures, and globalSetup
Loading...
The poly-bench DSL provides a declarative way to define cross-language benchmarks. This section is a focused reference for each main feature. For complete syntax, see the DSL Reference. For practical usage and examples, see the Charting, Fixtures, and Anvil guides.
The table below lists the main DSL features and links to their full guides. Each feature has its own page with syntax, examples, and gotchas.
| Feature | Description | Full Guide |
|---|---|---|
| Suites | Group benchmarks with shared config; declare suiteType, runMode, sameDataset | Suites |
| Setup Blocks | Per-language imports, declarations, init, and helpers | Setup Blocks |
| Benchmarks | Language implementations, lifecycle hooks, overrides, benchAsync | Benchmarks |
| Fixtures | Shared test data — inline hex, @file, data/encoding, structured extraction | Fixtures |
| globalSetup | One-time setup before benchmarks; Anvil spawning | globalSetup |