Paper VIIIReading edition

Benchmark contracts and measurement protocol

Reading tools
Reading libraryFind statementsInspect Lean
Switch work

Saved reading

Read side by side

Start reading

Resources & source

Original TeX with line links · Download TeX

The wording and mathematics follow the retained manuscript. This reading format does not add a proof review or extend Lean coverage.

Skip contents and start reading

11 Benchmark contracts and measurement protocol

Performance data are meaningful only after the mathematical and timing contracts are fixed. The protocol follows standard concerns from numerical linear algebra, floating point analysis, and machine performance modeling [Higham2002], [GolubVanLoan2013], [WilliamsWatermanPatterson2009].

Definition 11.1: Case signature

A case signature records the dimensions, packet layout, rank, right hand side count, random seed, source values, source type, reference computation, and output contract.

Definition 11.2: Fair match

Two measured rows are a fair match when they share one case signature, return the same declared output, use the same correctness reference, and have identical timing scopes. If one row includes an extra conversion or setup cost, it is a different scope and must be reported separately or added to both rows before comparison.

Proposition 11.3: Fair matching is an equivalence relation

On rows with complete metadata, equality of the case signature, output contract, correctness reference, and timing scope is an equivalence relation.

Proof of Proposition 11.3

Equality of each metadata field is reflexive, symmetric, and transitive. Their conjunction has the same properties.

Definition 11.4: Representation gain

Representation gain compares dense and structured work or storage for the same operator, independently of the processor.

Definition 11.5: Device gain

Device gain compares processors for the same representation, output, and timing scope.

Definition 11.6: Kernel gain

Kernel gain compares two implementations on the same device for the same representation, output, and timing scope.

Definition 11.7: Amortization gain

Amortization gain records the effect of one time discovery, compilation, transfer, capture, or materialization at a declared reuse count.

A measured total speedup can mix these four effects. A multiplicative decomposition is only exact when matched rows isolate the factors. Otherwise the decomposition is interpretive.

The corpus records timing scope and output contract as separate fields.
The corpus records timing scope and output contract as separate fields.

View full-size figure (new tab)

Remark 11.8: Logical work rate

A structured method may report a dense equivalent logical work rate greater than the physical dense throughput because it does not execute the dense operations. This statistic describes avoided work. It is not a claim that the device performed those operations.

Source and conversion record

Source SHA-256: ef616bca9291ac766d492b88f3166be4bc2b39f9ba6034dea3a4bcf2d2bf5d7f

Unsupported prose commands stop the build. The mathematical expression sequence is checked against the source, with manuscript macros expanded for display.

Conversion records

Notation in Paper VIII

Look up a symbol without leaving this chapter. Select text before opening help to search for it.

Search this work’s notation.

    Symbols can have different meanings in different passages. Read each result in its own context.

    Open the full notation index