runtime_estimator
Layout and arithmetic primitives for repeated-candidate runtime estimates.
Functions
Recover one candidate's marginal from N-versus-2N measurements. |
|
Round a candidate repeat count up to a balanced PP multiple. |
|
Recover workload overhead that does not scale with candidate count. |
|
Return a candidate-only benchmark layout. |
|
Return a component-wise robust center for repeated overhead estimates. |
|
Insert one fixed scaffold before each PP stage's candidate chunk. |
- candidate_slope(short, long, repeat_count)
Recover one candidate’s marginal from N-versus-2N measurements.
- Parameters:
short (RuntimeMeasurement)
long (RuntimeMeasurement)
repeat_count (int)
- Return type:
- effective_repeat_count(configured, pp_size)
Round a candidate repeat count up to a balanced PP multiple.
- Parameters:
configured (int)
pp_size (int)
- Return type:
int
- fixed_intercept(short, long)
Recover workload overhead that does not scale with candidate count.
- Parameters:
short (RuntimeMeasurement)
long (RuntimeMeasurement)
- Return type:
- homogeneous_layout(candidate, repeat_count)
Return a candidate-only benchmark layout.
- Parameters:
candidate (BlockConfig)
repeat_count (int)
- Return type:
tuple[BlockConfig, …]
- median_measurement(values)
Return a component-wise robust center for repeated overhead estimates.
- Parameters:
values (list[RuntimeMeasurement])
- Return type:
- scaffolded_layout(candidate, scaffold, repeat_count, pp_size)
Insert one fixed scaffold before each PP stage’s candidate chunk.
- Parameters:
candidate (BlockConfig)
scaffold (BlockConfig)
repeat_count (int)
pp_size (int)
- Return type:
tuple[BlockConfig, …]