rics.performance.types#
Types used by the framework.
Module Attributes
A type of data accepted by candidate functions. |
|
A function |
|
A result set on the form |
|
Argument types for a |
|
A function |
|
A callable |
|
A callable |
|
A precomputed grouping |
|
Valid stratify input types; see |
- class DataType#
A type of data accepted by candidate functions.
alias of TypeVar(‘DataType’)
- CandFunc#
A function
(DataType) -> Anyunder test. The return value is ignored.
- ResultsDict#
A result set on the form
{candidate_label: {data_label: [runtime, ...]}}.
- DataFunc#
A function
(*Ts) -> DataTypeused to generate test data.
- SetupFunc#
A callable
(data) -> datarun – unmeasured – before each timed repetition to produce a fresh input.
- StratifyFunc#
A callable
(data_label) -> stratum_keygrouping comparable variants; seeMultiCaseTimer.
- StrataMapping#
A precomputed grouping
stratum_key -> data labels. Any compatible mapping works;Stratais the fitted variant returned byMultiCaseTimer.compute_strata()(it also records how it was derived).
- StratifyArg: TypeAlias = collections.abc.Callable[[typing.Hashable], collections.abc.Hashable] | collections.abc.Mapping[typing.Any, collections.abc.Iterable[typing.Hashable]] | int | typing.Literal['full', 'auto'] | None#
Valid stratify input types; see
MultiCaseTimer.compute_strata().