runner design

Design goal

A benchmark result is evidence only if three things hold: the implementations computed the right answer on the measured input, every implementation was measured under the same conditions, and the measurement can be traced back to a seed, a protocol and an environment. runner is the one package that executes payloads, and it is built so that these properties hold by construction rather than by discipline: validation precedes timing, the order of implementations is balanced, batch sizes are calibrated, the datasets follow the declared experimental design, and every raw observation is emitted.

Constraints

  • It is the only package that executes payloads, and payloads may be wrong, slow, crash or loop.
  • Timers have a finite resolution (performance.now() may be coarsened to 100 µs or more in browsers), and machines drift during a run.
  • run is asynchronous and must work wherever moonbitlang/async has a runtime; subprocesses exist only on native.
  • No event may be emitted inside a timed region.
  • A fixture’s prepare depends on the dataset’s input and the implementation id; the runner cannot know whether a prepared value would also be valid for another input.

Mathematical background

Blocks and the measurement model

For one scale the runner measures kk implementations in blocks b=0,1,…,E+C−1b = 0, 1, \dots, E + C - 1: EE exploratory blocks followed by CC confirmatory blocks (exploratory_samples and confirmatory_samples). Inside a block every implementation runs one batch, on the same dataset. Model the per-iteration time of implementation ii in block bb as

yi,b=μi+τpi(b)+δ si(b)+εi,b,y_{i,b} = \mu_i + \tau_{p_i(b)} + \delta\, s_i(b) + \varepsilon_{i,b},

where pi(b)∈{0,…,k−1}p_i(b) \in \{0, \dots, k-1\} is the position of ii inside the block, τp\tau_p a position effect (the first batch of a block runs with colder caches), si(b)=bk+pi(b)s_i(b) = bk + p_i(b) the global slot number, δ\delta a linear drift (thermal throttling, background load) and ε\varepsilon noise. The quantity of interest is μj−μi\mu_j - \mu_i.

Cyclic Latin square order

Under OrderPolicy::BalancedBlocks(order_seed) block bb runs the implementations in the order balanced_order(k, b + o), that is implementation (p+b+o) mod k(p + b + o) \bmod k at position pp, with offset o=(order_seed⊕run_seed) mod ko = (\text{order\_seed} \oplus \text{run\_seed}) \bmod k. Implementation ii therefore sits at position

pi(b)=(i−b−o) mod k.p_i(b) = (i - b - o) \bmod k .

Balance. For fixed ii, the map b↦(i−b−o) mod kb \mapsto (i - b - o) \bmod k is a bijection from any kk consecutive integers onto {0,…,k−1}\{0, \dots, k-1\}. Over every complete cycle of kk consecutive blocks each implementation occupies each position exactly once: the k×kk \times k table of positions is a Latin square.

Cancellation. Sum the model over a complete cycle b0,…,b0+k−1b_0, \dots, b_0 + k - 1:

∑bτpi(b)=∑p=0k−1τp,∑bsi(b)=k∑bb+∑bpi(b)=k∑bb+k(k−1)2.\begin{aligned} \sum_{b} \tau_{p_i(b)} &= \sum_{p=0}^{k-1} \tau_p, \\ \sum_{b} s_i(b) &= k \sum_{b} b + \sum_{b} p_i(b) = k \sum_{b} b + \frac{k(k-1)}{2}. \end{aligned}

Both right-hand sides are independent of ii. The cycle means therefore satisfy

yˉj−yˉi=μj−μi+(εˉj−εˉi),\bar y_j - \bar y_i = \mu_j - \mu_i + (\bar\varepsilon_j - \bar\varepsilon_i),

free of position effects and of linear drift. With FixedOrder, pi(b)=ip_i(b) = i in every block and the difference carries the bias τj−τi+δ(j−i)\tau_j - \tau_i + \delta (j - i) for ever.

The cancellation is exact for means over complete cycles; choose E+CE + C as a multiple of kk so that the confirmatory phase, which continues the rotation at block EE, covers complete cycles. Medians of paired deltas are robust rather than exactly unbiased: the per-block bias τpj(b)−τpi(b)+δ(pj(b)−pi(b))\tau_{p_j(b)} - \tau_{p_i(b)} + \delta (p_j(b) - p_i(b)) takes each of its kk values equally often, and for k=2k = 2 it alternates between +c+c and −c-c.

Datasets and blocks

The experiment design decides which dataset each block measures. Write n=E+Cn = E + C for the blocks of a scale and rr for repeats_per_dataset. The number of datasets per scale and the dataset index of block bb are

designDj(b)FixedDatasetRepeatedMeasurements10MultipleDatasetsSingleMeasurementnbHierarchicalDatasetsAndRepeatsn/r⌊b/r⌋\begin{array}{lll} \text{design} & D & j(b) \\ \hline \text{FixedDatasetRepeatedMeasurements} & 1 & 0 \\ \text{MultipleDatasetsSingleMeasurement} & n & b \\ \text{HierarchicalDatasetsAndRepeats} & n / r & \lfloor b / r \rfloor \end{array}

All three are the hierarchical rule with a block count per dataset m∈{n,1,r}m \in \{n, 1, r\}: dataset jj is measured by the consecutive blocks jm,…,jm+m−1jm, \dots, jm + m - 1, and j(b)=⌊b/m⌋j(b) = \lfloor b/m \rfloor.

Every block has exactly one dataset. validate_protocol requires rr to divide EE and CC under the hierarchical design, hence r∣nr \mid n, D=n/rD = n/r is an integer and the DD ranges [jr,jr+r)[jr, jr + r) partition {0,…,n−1}\{0, \dots, n-1\}. For the other two designs mm divides nn trivially.

No dataset spans both phases. Block bb is exploratory exactly when b<Eb < E. Because r∣Er \mid E, the boundary EE is the start of dataset E/rE/r: datasets 0,…,E/r−10, \dots, E/r - 1 are measured only by exploratory blocks and the others only by confirmatory ones. Without the rule a dataset could feed both phases, and the confirmatory phase, which is meant to be independent of what the exploratory phase looked at, would reuse an exploratory input.

Dataset ids are unique in a run. The dataset with index jj of the scale at position ss gets dataset_id =sD+j= sD + j with 0≤j<D0 \le j < D. This is the mixed-radix number with digits (s,j)(s, j), so distinct pairs give distinct ids, and the ids of a run are exactly 0,…,∣scales∣D−10, \dots, \lvert\text{scales}\rvert D - 1. Under the fixed design D=1D = 1 and the id is the scale’s position, as before the designs were implemented.

Why several datasets. Model the per-iteration time of an implementation on dataset jj in its tt-th repetition as

yjt=μ+αj+εjt,Var⁡(αj)=σα2,Var⁡(εjt)=σε2,y_{jt} = \mu + \alpha_j + \varepsilon_{jt}, \qquad \operatorname{Var}(\alpha_j) = \sigma_\alpha^2,\quad \operatorname{Var}(\varepsilon_{jt}) = \sigma_\varepsilon^2,

where αj\alpha_j is the effect of the particular input (its data-dependent branches, cache footprint, values) and ε\varepsilon the measurement noise. The mean of DD datasets with rr repetitions each, n=Drn = Dr blocks in total, has

Var⁡(yˉ)=σα2D+σε2Dr.\operatorname{Var}(\bar y) = \frac{\sigma_\alpha^2}{D} + \frac{\sigma_\varepsilon^2}{Dr} .

With one dataset (D=1D = 1) the first term never shrinks: however many blocks run, the result describes that input, not the input distribution the generator stands for. For a fixed budget nn, one measurement per dataset (D=nD = n, r=1r = 1) minimizes the variance, but then α\alpha and ε\varepsilon cannot be told apart. Repeats (r≥2r \ge 2) make the within-dataset spread σε2\sigma_\varepsilon^2 observable from the differences between repetitions of the same input, at the cost of fewer inputs. The fixed design is the right choice when the input is fixed by the question (one matrix, one file); the other two when the input is a random sample. RegressionGate uses r=5r = 5 for both reasons.

Paired comparisons keep working: within a block every implementation measures the same dataset, so the paired delta of block bb cancels the dataset effect that both share, and only the interaction of implementation and input remains.

Batch calibration

A timer has a resolution ρ\rho and a start/stop overhead ω\omega. A batch of nn iterations that truly takes T(n)T(n) is read as T^=T(n)+ω+q\hat T = T(n) + \omega + q with ∣q∣≤ρ\lvert q\rvert \le \rho, and the runner reports T^/n\hat T / n. The relative error of the per-iteration time is at most

ω+ρT(n),\frac{\omega + \rho}{T(n)} ,

which shrinks as the batch grows. Calibration chooses nn so that T(n)T(n) reaches target_batch_time_us =t= t. Starting from n0=min⁡(max⁡(min_batch_iterations,1),nmax⁡)n_0 = \min(\max(\text{min\_batch\_iterations}, 1), n_{\max}) with nmax⁡=max⁡(max_batch_iterations,1)n_{\max} = \max(\text{max\_batch\_iterations}, 1), while the batch is valid, T(n)<tT(n) < t, T(n)<T(n) < max_sample_time_us and n<n < max_batch_iterations, the next size is

nj+1=min⁡(nmax⁡, max⁡(nj+1, ⌈nj tT(nj)⌉)),n_{j+1} = \min\Bigl(n_{\max},\ \max\Bigl(n_j + 1,\ \Bigl\lceil \frac{n_j\, t}{T(n_j)} \Bigr\rceil\Bigr)\Bigr),

with 10 nj10\, n_j in place of the ratio when the measured time is 00.

Linear cost. If T(n)=c nT(n) = c\,n, the first update gives n1=⌈t/c⌉n_1 = \lceil t / c\rceil and T(n1)∈[t,t+c)T(n_1) \in [t, t + c): one retry suffices.

Affine cost. If T(n)=a+c nT(n) = a + c\,n with a fixed per-batch cost a>0a > 0, the update is the fixed-point iteration of f(n)=nt/(a+cn)f(n) = n t / (a + c n). Its fixed point solves a+cn∗=ta + c n^* = t, so n∗=(t−a)/cn^* = (t - a)/c, and

f′(n)=a t(a+cn)2,f′(n∗)=at<1.f'(n) = \frac{a\, t}{(a + c n)^2}, \qquad f'(n^*) = \frac{a}{t} < 1 .

The iteration contracts with rate a/ta/t near n∗n^*. In fact the gap obeys an exact identity: for n<n∗n < n^*,

n∗−f(n)=t−ac−nta+cn=(t−a)(a+cn)−cntc (a+cn)=a (t−a−cn)c (a+cn)=aT(n) (n∗−n).\begin{aligned} n^* - f(n) &= \frac{t - a}{c} - \frac{n t}{a + c n} = \frac{(t - a)(a + c n) - c n t}{c\,(a + c n)} \\ &= \frac{a\,(t - a - c n)}{c\,(a + c n)} = \frac{a}{T(n)}\,\bigl(n^* - n\bigr). \end{aligned}

Since 0<a<T(n)<t0 < a < T(n) < t while the loop runs, n<f(n)<n∗n < f(n) < n^*: the iteration approaches n∗n^* from below without overshooting (up to the rounding by ⌈⋅⌉\lceil\cdot\rceil), and each retry multiplies the remaining gap by a/T(nj)a/T(n_j). That factor is close to 11 while the fixed cost dominates a small batch, and falls to a/ta/t as T(nj)T(n_j) approaches the target: when the fixed cost is 10 % of the target, the last retries reduce the gap about tenfold each. If a≥ta \ge t there is no fixed point, and the batch grows until max_batch_iterations or max_sample_time_us stops it. Because every step increases nn by at least one and nn is capped by nmax⁡=max⁡(max_batch_iterations,1)n_{\max} = \max(\text{max\_batch\_iterations}, 1), the loop terminates after at most nmax⁡−n0n_{\max} - n_0 retries.

With the QuickCheck preset (t=1000t = 1000 µs) and a 1 µs timer, the quantization error ρ/T(n)\rho / T(n) of a batch that reached the target is at most 0.1 %0.1\,\%; a batch stopped early by max_batch_iterations or max_sample_time_us can be shorter, and its CalibrationEvent shows it. In the browser, performance.now() may be coarsened to 100 µs or more; raise the target accordingly.

Design decisions

Validate before timing

Problem. A fast wrong answer must not look like a speedup. Options. Validate inside the timed loop; validate afterwards; validate before. Choice. Before a dataset is measured the runner runs a validation sequence of sequence_length operations per implementation, from a fresh clone_input/prepare and initial_context, and compares it with the oracle. Timing starts only afterwards. Why. Validation inside timing would be timed; validation afterwards could not show the failing input next to the measurement. The sequence threads next_context from step to step, so stateful operations (an accumulator, a rounding mode, a parser state) are validated in the same order in which they are measured.

validation_coverage decides which datasets and batches are validated:

CoverageValidated before measuringExtra validations
EveryDatasetevery datasetnone
ConfirmatoryOnlythe datasets measured by confirmatory blocksnone
EveryMeasurementevery datasetbefore every exploratory and confirmatory batch

Under the fixed design the one dataset of a scale feeds the confirmatory blocks, so ConfirmatoryOnly and EveryDataset coincide; under the other designs ConfirmatoryOnly skips the datasets 0,…,E/r−10, \dots, E/r - 1 that only exploratory blocks measure, which saves validation time on inputs that never enter a decision.

EveryMeasurement guards against an implementation that is correct on a fresh value but not on the state the measurement reaches: a cached workspace that a previous batch corrupted, or a stateful payload that drifts. Right before every batch, outside the timed region, the runner runs the validation sequence on the prepared value that batch is about to use (the cached value of a long-lived setup, or a value prepared with the batch’s sample id), compares it with the oracle, and resets the value. The validation carries the batch’s MeasurementKey (Validation.measurement); RunSummary.measurement_validation_count counts these, and they are part of validation_count. For a reference oracle the expected sequence is the one computed for the dataset; for a relational oracle the measured implementation is compared with every other implementation’s dataset-level sequence.

Before calling the oracle, the runner maps execution outcomes that are not values:

Outcome of the implementationValidation status
Unsupported(reason)Unsupported(reason)
ParseFailure, Aborted, TimeoutInfrastructureFailure(...)
ExpectedDifference(reason)ExpectedDifference(reason)
Value, RaisedFlags, Trappeddecided by the oracle

For a relational oracle every unordered pair i<ji < j of implementations is compared step by step; the event is attributed to the second implementation of the pair. A relational sequence that ends early (next_context = None) is compared on the steps both sides produced. A reference-oracle sequence must reach the configured length: when the oracle or the implementation ends early and every common step passed, the runner adds an Invalid length-mismatch validation whose evidence describes the first missing step. When a common step did not pass (a failure, Unsupported, ExpectedDifference or an infrastructure failure), that step already accounts for the stop and no mismatch is added, so a timed-out worker is counted once. Invalid and InfrastructureFailure count as failures; a failure triggers the shrinker, if one is configured, and emits a ValidationFailure with the seed, both fingerprints, the shrink path and the minimal input. A length mismatch is not shrunk; its ValidationFailure has an empty shrink path and the original input.

A failure does not stop the measurement. The report removes the series of the failing implementation for that dataset and shows the mismatch instead.

Balanced, seeded rotation instead of randomization

Problem. Position and drift effects bias a fixed order. Options. Fixed order; an independent random permutation per block; a cyclic Latin square. Choice. The cyclic rotation derived above, with a seeded offset. Why. A random permutation balances positions only in expectation; with ten blocks and three implementations, one implementation can easily run first four times. The rotation balances them exactly over every cycle, and the seed still decides which implementation starts.

Calibrated batches, and one size per implementation by default

Problem. Single operations are too short to time. Choice. Every implementation is calibrated separately (BatchPolicy::PerImplementation), so each reaches the target duration. BatchPolicy::SharedBatchSize replaces all sizes with their minimum, n=min⁡inin = \min_i n_i, for experiments in which the amount of work per batch must be identical, at the cost of a shorter batch, and a larger relative timer error, for the slower implementations. The per-iteration value T^/n\hat T / n is a batch mean: a batch reduces the variance of independent per-iteration noise by a factor nn but also hides the tail inside the batch.

Explicit timing boundaries

The clock is @bench.monotonic_clock_start/monotonic_clock_end (µs). What it encloses depends on the fixture’s SetupPolicy:

SetupExcludedFromMeasurementIncludedInMeasurement
PerRun, PerDataset, PerImplementationprepare once per dataset and implementation and cache; per batch: start, n×n \times (execute, fold), stopas excluded, except that on the first dataset of a scale the one-time prepare falls inside the timed region of the first batch that runs (usually a warmup batch); later datasets prepare before their first block, outside timing
PerSample, PerBatchprepare; start; n×n \times (execute, fold); stop; resetstart; prepare; n×n \times (execute, fold); reset; stop
PerIterationn×n \times (prepare; start; execute; fold; stop; reset), times summedstart; n×n \times (prepare; execute; fold; reset); stop

prepare here includes clone_input. synchronize is called immediately before every start and before every stop. finish of the output sink and @bench.Bench::keep run after the stop, outside timing; keep stops the compiler from removing work whose result is unused. Event emission never happens inside a timed region.

PerIteration with excluded setup has a cost: it takes nn timer readings per batch, so the quantization error is nρ/(nc)=ρ/cn\rho / (n c) = \rho / c and does not shrink with the batch size. Use it only for operations that are long compared with the timer resolution.

Fixture lifecycle and sentinel sample ids

The fixture’s prepare and reset receive a SampleContext or ResetContext whose sample_id tells the fixture what the runner is doing:

sample_idPhase
-1validation sequence of a dataset
-1000 - wwarmup batch ww
-3reset after warmup (long-lived setups only)
-2 - rcalibration batch after rr retries; -2 is also the reset after calibration
-4preparation of a long-lived value for a dataset after the first of its scale
-100000 - rexploratory block with repetition rr, and its measurement validation
rconfirmatory block with repetition rr, and its measurement validation
confirmatory_samplesfinal reset of a cached prepared value at the end of a dataset

Long-lived setup belongs to one dataset

Long-lived setups (PerRun, PerDataset, PerImplementation) are prepared once per dataset and implementation and cached across that dataset’s warmup, calibration and blocks. They are reset after warmup and after calibration, after every measurement validation under EveryMeasurement, and at the end of the dataset.

Problem. The names suggest three lifetimes: one value for the whole run, one per dataset, one per implementation. Options. Share a prepared value across datasets; share it across implementations; key it by (dataset, implementation). Choice. The cache is keyed by (dataset, implementation), and PerRun is rejected when the run has more than one dataset. Why. A prepared value is p=prepare⁡(clone⁡(xd),i)p = \operatorname{prepare}(\operatorname{clone}(x_d), i), a function of the input xdx_d of dataset dd and of the implementation ii. Dataset d′d' has another input xd′x_{d'}; running its blocks on pp would measure the workload of xdx_d while recording d′d', so every observation of d′d' would be mislabelled, and under EveryMeasurement it would be validated against the expected results of xd′x_{d'}. The value must therefore be rebuilt for every dataset, which is what PerDataset says. Sharing across implementations is excluded by the API: prepare receives the implementation id precisely so that it may build a different layout per implementation. With both sharings excluded, PerDataset and PerImplementation describe the same cache, and PerRun is that cache when the run has exactly one dataset. With more than one dataset a run-wide value would have to come from one dataset’s input, so BenchSpec::compile (counting scales, or the datasets of a given protocol) and run reject it with PerRunSetupWithMultipleDatasets instead of silently preparing per dataset.

Warmup and calibration once per scale

On the first dataset of a scale every implementation runs single-iteration batches until it has run warmup_iterations batches and spent warmup_time_us, capped at max⁡(warmup_iterations,max_batch_iterations)\max(\text{warmup\_iterations}, \text{max\_batch\_iterations}) batches, and is then calibrated. The same warmup applies to every implementation, so none starts the measurement with an advantage from just-in-time compilation or caches. Later datasets of the scale reuse the calibrated batch sizes: datasets of one scale have the same size and, by construction of the generator, the same distribution, so the cost per iteration and with it the right batch size is the same up to noise. Repeating warmup and calibration per dataset would multiply their cost by DD and make the batch size, and with it the timer error, differ between datasets of the same scale.

Crash isolation through subprocess workers

Problem. A candidate that segfaults or loops forever would end the experiment. Choice. Implementation::worker runs each operation as a child process inside a task group with a hard-cancel handler, captures stdout and stderr concurrently, and turns a timeout or non-zero exit into an outcome. Why. An outcome is data: it is counted, reported and replayable. Process creation is part of the measured operation for workers, which is acceptable for correctness corpora and unsafe code, not for micro-benchmarks.

Seeds and identities

The run seed reaches the fixture unchanged in GenerationContext(seed, "default", case_id, DatasetKey(scale, dataset_id), fixture.id, fixture.version) for every dataset. Derive per-dataset seeds from it and dataset_id with @generator.derive_seed; the generator design explains the mixing. The same seed sets the rotation offset. Together with the protocol, the plan and the environment snapshot, the seed determines everything except the timings.

The summary’s run_id is @model.run_identity(case_id, protocol, seed, provenance): the case, the identity of the complete protocol, the seed and the provenance run id and timestamp. Two executions differ in at least the provenance, so they get different ids, and the id still shows which case and protocol it belongs to. The summary also carries the protocol and the seed themselves.

Correctness and invariants

  • Validation precedes timing for every validated dataset and implementation, and, under EveryMeasurement, for every batch.
  • Balance. Over every kk consecutive blocks each implementation occupies each position once (proved above).
  • Datasets. Every block measures exactly one dataset, no dataset spans both phases, and dataset ids are unique in a run (proved above).
  • Event order per dataset. Validations and failures of the dataset (when covered); on the first dataset of a scale one calibration event per implementation; then the dataset’s observations block by block, each preceded by its measurement validations under EveryMeasurement. The summary is emitted once, after the last dataset.
  • Counts. observation_count =∣scales∣⋅k(E+C)= \lvert\text{scales}\rvert\cdot k (E + C) whatever the design; calibration_count =∣scales∣⋅k= \lvert\text{scales}\rvert \cdot k; validation_count is the number of compared steps. For a reference oracle whose sequences run their full length LL, with DvD_v validated datasets per scale (DD, or for ConfirmatoryOnly the D−⌊E/m⌋D - \lfloor E/m \rfloor confirmatory ones, with mm the blocks per dataset), validation_count =∣scales∣ kL (Dv+[EveryMeasurement] (E+C))= \lvert\text{scales}\rvert\, k L\,(D_v + [\text{EveryMeasurement}]\,(E + C)) and measurement_validation_count is the second term.
  • Validity. An observation is valid = false when an operation in its batch produced no value or ended the context sequence.
  • Termination. Calibration performs at most nmax⁡−n0n_{\max} - n_0 retries; warmup at most max⁡(warmup_iterations,nmax⁡)\max(\text{warmup\_iterations}, n_{\max}) batches; shrinking at most max_steps candidate evaluations.
  • Reset discipline. A short-lived prepared value (validation sequence, PerSample, PerBatch, PerIteration) is reset exactly once. A cached long-lived value belongs to one dataset; it is reset after warmup and after calibration (first dataset of a scale), after every measurement validation, and at the end of the dataset, and reused in between, so reset must leave it reusable.

Alternatives rejected

  • Random permutation per block. Balanced only in expectation.
  • Williams designs. They also balance first-order carryover (which implementation ran just before), but need 2k2k blocks per cycle for odd kk. The cyclic order always places implementation i−1i - 1 before ii inside a block.
  • Timing each iteration. Timer overhead and resolution dominate short operations; batches amortize them.
  • Stopping when an interval is narrow enough. Sequential stopping rules invalidate fixed-sample intervals; the sample counts are fixed by the protocol.
  • Validation after timing. It would separate a wrong result from the measurement that should be discarded.
  • Treating PerRun as PerDataset when there are several datasets. It would run something other than what the fixture declares; the error makes the mismatch visible.
  • Warmup and calibration per dataset. Multiplies their cost by the number of datasets and lets the batch size, and the timer error, vary between datasets of one scale.
  • Datasets that straddle the phase boundary. The confirmatory phase would reuse inputs the exploratory phase already looked at; validate_protocol requires repeats_per_dataset to divide both sample counts instead.

Boundaries

  • The runner does not pin threads, fix CPU frequency or isolate the process; it records what you declare about them, or what env_detect found, in the EnvironmentSnapshot.
  • outlier_policy and practical_delta_pct are recorded but do not change the run; the report and stats apply them.
  • It does not compute comparisons or decisions; stats and report do.
  • It does not make datasets different: every dataset gets the same run seed, and the fixture must use dataset_id to vary its input.
  • Warmup and calibration run once per scale, on its first dataset.
  • WorkspaceScope is recorded with every observation but not interpreted; PerRun, PerDataset and PerImplementation share one cache per dataset and implementation.
  • Subprocess workers need the native target; run itself needs an async runtime (native, JS or wasm, not wasm-gc).
  • First-order carryover between implementations is not balanced.