# CutNesting 2D Benchmark Methodology v1.0.0

## Scope

This methodology measures geometric area utilization, placement feasibility,
solver invariants, determinism, and execution time for CutNesting's
two-dimensional production nesting engine on a fixed synthetic corpus.

It does not compare products and does not claim that a returned layout is a
global optimum. The suite includes rectangular plate and sheet cases, an exact
fit, irregular remnant geometry with an internal void, and finite-stock
exhaustion.

## Production engine boundary

The native runner calls `optimize_nest_native`, a thin native wrapper around
the same `optimize_nest` production entry point compiled to WebAssembly for the
browser product. Native results are labeled `native-rust`; they are not
browser/WASM performance claims.

## Area definitions

- `totalSheetArea`: true polygon area of every used sheet, subtracting holes.
- `placedPartArea`: true polygon area of every placed part, subtracting holes.
- `estimatedUnusedArea`: total sheet area minus placed part area.
- `utilizationPercent`: placed part area divided by total sheet area.
- `estimatedUnusedAreaPercent`: 100 minus utilization percentage.

Estimated unused area is a geometric planning measure. It is not disposable
manufacturing waste: the benchmark does not model kerf width, lead-ins,
pierces, common-line cutting, or generated toolpaths. Gaps and edge margins
constrain placement, but remain part of the estimated unused area.

## Feasibility and validation

The independent runner recomputes and checks:

- Every requested part instance appears exactly once as placed or unplaced.
- Placed and unplaced parts reference declared definitions.
- Sheet and placement areas from polygon coordinates, including holes.
- Per-sheet and summary area accounting and utilization.
- Used-sheet, requested-part, placed-part, and unplaced-part counts.
- The production engine's invariant status and deterministic seed.
- Identical normalized layout output across all measured runs.
- Each case's allowed solver status and placement boundary.

The production engine performs its own geometry and collision invariants. The
benchmark runner separately checks serialized output and area accounting.

## Timing

The default reference run performs three warmups followed by 30 measured
executions per case. Timing surrounds only the synchronous native production
engine call. Parsing and validation occur outside the timed interval.

Reports include every raw duration plus p50 and p95. Runtime depends on the
recorded hardware and execution target, so it is a technical reference rather
than a cross-machine performance guarantee.

## Reproducibility

Each report records suite and methodology versions, source and dataset Git
commits and dirty state, exact dataset tag when available, SHA-256 hashes for
the manifest/cases/schemas, environment details, raw timings, normalized
metrics, the production result, and validation status.

Public reference results must be generated from a clean source commit against
a clean, immutable public dataset tag. Dirty-tree runs are diagnostic only.
