Before publishing a product speed comparison, define the work each configuration must complete and the conditions under which it runs. A shorter elapsed time is not a superior result if one run starts with prepared data, skips a validation step or produces an incomplete output.
Use a run-control card with input identity, output requirements, environment, cache state and timing boundary. Its first job is to reject incomparable runs. A headline should wait until those gates pass, rather than using a precise stopwatch value as evidence that the task was fair.
The reproduction-package guide asks whether another analyst can recreate a result. This card addresses a prior question: did the compared runs perform equivalent work under the declared comparison design? A completely reproducible unfair comparison remains unfair.
Use a Concrete Fictional Conversion Task
Imagine two invented converter designs, Baseline and Candidate. Both must consume the closed fictional fixture C1 and produce the relation defined below. These are proposed teaching inputs and design identities, not observations, available software builds or measurements from a real product. No benchmark has been executed.
Construct C1 in this exact order. First write one row for each integer n from 1 through 9750. Its key is uppercase K followed by n padded to four decimal digits; its label is one leading space, lowercase item-, the same four digits, and one trailing space; its quantity is n written as a decimal string. Then append 250 extra rows, in n order from 1 through 250. Each repeats the corresponding key, changes the label to one space plus uppercase ITEM- plus the four digits plus one space, and changes quantity to n+1.
Thus 9750 unique-key rows plus 250 specified surplus rows yield 10000 input rows. Exactly keys K0001 through K0250 occur twice. The other 9500 keys occur once. This is more precise than saying 250 duplicated keys without specifying how many extra occurrences exist.
The byte contract is UTF-8 without a byte-order mark, comma-separated fields, header key,label,quantity, LF line endings and a final LF. No field contains a comma, quote or newline, so these fixture rows need no quoting. Preserve the label spaces when parsing. The exact C1 input SHA-256 is 8e8dee7f64e719813c888de154c79e2027720ea7c9ca54739616a8a7d96c7336.
Normalize labels by stripping the specified edge spaces and converting their ASCII letters to lowercase; parse quantity as an integer. Resolve duplicate keys by keeping the last row in input order. Reject malformed keys or noninteger quantities rather than inventing defaults. Sort the final relation by its fixed-width key. There must be one output tuple for each n from 1 through 9750: key K plus four digits, label item- plus those digits, and quantity n+1 for n at most 250, otherwise n.
| Reference Key | Required Normalized Label | Required Integer Quantity | Reason |
|---|---|---|---|
| K0001 | item-0001 | 2 | Appended row replaces original quantity 1 |
| K0250 | item-0250 | 251 | Last specified duplicate wins |
| K0251 | item-0251 | 251 | Unique row retains its original quantity |
| K9750 | item-9750 | 9750 | Last unique base record retained |
The output has 9750 distinct keys and quantity sum 47536375. Those are useful checks but do not replace comparing every expected tuple. Two wrong quantities can cancel in the sum. Keeping the first occurrence would preserve the same row count while leaving the first 250 quantities wrong.
The proposed elapsed-time boundary starts immediately before opening the local C1 input and ends after the output CSV is closed and its requested file flush completes. Reference verification happens afterward; invalid output disqualifies the duration. Installation and input acquisition are excluded and disclosed separately. This measures the declared local conversion/write boundary, not storage survival after power loss or total onboarding time.
Populate the Run-Control Card
These are concrete declared identities for an unexecuted teaching design. Atlas-1 is an invented host specification, not equipment inspected for this article. The two converter build labels identify proposed designs, not downloadable releases or claimed compatible vendor products.
| Field | Baseline Contract | Candidate Contract |
|---|---|---|
| Input | Exact C1 bytes and input SHA-256 above | Identical C1 bytes and SHA-256 |
| Host identity | Atlas-1: x86-64,4 virtual CPUs,8 GiB RAM,20 GiB local scratch volume | Atlas-1 restored to the same declared starting image |
| OS image identity | atlas-os-r 1: declared Debian 12.6 x86-64 image | Same atlas-os-r 1 design image |
| Runtime identity | CPython 3.12.7, same interpreter configuration | CPython 3.12.7, same interpreter configuration |
| Converter design identity | baseline-fixture-r 1: sequential row processing | candidate-fixture-r 1: batched row processing |
| Required transformation | Trim/lowercase label, integer quantity, last input row wins, key sort | Identical transformation and reference relation |
| Output representation | UTF-8 CSV, key,label,quantity header, LF, canonical integer strings | Identical serialization and full tuple comparison |
| Initial cache branch | Empty converter application cache, no output file; input already local | Same application-level starting state |
| Timing start | Immediately before opening C1 | Same boundary |
| Timing end | Output closed after requested file flush; reference check outside timer | Same boundary |
| Excluded work | Installation, input acquisition and reference verification | Same exclusions, separately reported |
The design deliberately makes no cold operating-system-cache claim. Restoring a declared application state does not prove disk, network or host-level isolation. A real execution would have to record the actual image digest, installed interpreter/build identities, host details and observed cache conditions before its results could be published.
A same-host design is one possible comparison. If real products require different supported environments, disclose those configurations and explain what the comparison measures. Do not force an unsupported setup merely to make hardware labels identical.
SPEC CPU 2017's disclosure rules require reproducibility information for that suite, including hardware, software, configuration and relevant non-default choices, as well as valid outputs. These are primary examples of explicit benchmark contracts, not a claim that this custom design has run or satisfies SPEC's requirements.
Reject Three Attractive but Invalid Comparisons
First, suppose Candidate reads a previously normalized cached table while Baseline parses the raw source. A hypothetical 2-second versus 10-second comparison would measure two delivery paths, not equivalent cold conversion. It could be meaningful for a clearly defined warm-cache retrieval question, but not for the proposed claim.
Second, suppose Candidate finishes in 4 seconds with 9500 rows while Baseline produces the correct 9750 in 10 seconds. Candidate's output misses 250 required records. Its duration does not enter the valid speed comparison as a success. Report a failed output acceptance state rather than “2.5 times faster.”
Third, suppose Baseline's timer includes file upload while Candidate's starts after upload. Even identical final outputs cannot repair that mismatched timing boundary. Preserve the upload duration separately or rerun with the approved common boundary.
All times in these scenarios are invented. They demonstrate rejection rules; no benchmark has been executed. The number-check method can confirm 10/4=2.5, but arithmetic correctness does not make the comparison valid.
Separate Cold and Warm Questions
Define what cold means for this application: empty application cache, no prior conversion artifact and a known input location, for example. A clean application state does not automatically establish a cold operating-system page cache or a fresh network connection. Record the actual controlled scope.
Define warm independently: which resources are prepared, how preparation occurs and whether its cost is part of the intended reader task. Do not count Baseline's preparation while excluding Candidate's. If preparation is a real one-time customer requirement, disclose it even when the steady-state conversion metric excludes it.
Avoid a universal warmup count. Appropriate initialization and repetitions depend on the workload, platform and research question. A method owner should specify them before the run rather than deleting early slow observations after seeing which configuration benefits.
Control Sequence Without Claiming Perfect Isolation
Run order can interact with resource contention, thermal conditions, shared-service load or background jobs. A proposed design can alternate or randomize order where appropriate, preserve the actual schedule and record competing activity. That reduces a known concern without proving every environmental influence disappeared.
Use repeated valid runs under the declared plan and retain failures. A median of selected successes cannot represent all attempted runs without its selection disclosed. If a provider limits test access or a configuration changes mid-study, record the resulting scope break.
The survivorship review examines missing units in historical datasets. The related lesson here is to preserve the run roster: an attempt that crashed or produced invalid output must not vanish before the performance table is assembled.
Release an Acceptance Packet
The fictional packet contains the fixture, duplicate-resolution reference, output identity check, environment card, timing definitions and three negative comparison cases. It establishes what a future test must demonstrate. It contains no measured result to advertise.
A real packet would add actual run identifiers, timestamps, logs, accepted outputs and method review. The research table package should distinguish proposed cases from executed observations so a reader cannot mistake a test design for completed evidence.
Approve public speed copy only after the completed work, environment and statistic match the stated question. If conditions differ legitimately, describe the compared systems and limitations directly. The useful benchmark is one whose slower result was allowed to be correct and whose faster result had to do the same job.
