Skip to content

voiage.contracts.bundle.ContractPerformanceBudget

Portable upper bounds for the small deterministic bundle verification lane.

enforce([positional or keyword] self: None = None, [keyword-only] cpu_seconds: float = None, [keyword-only] peak_memory_bytes: int = None, [keyword-only] allocation_count: int = None, [keyword-only] serialization_bytes: int = None) -> Self

Raise with the precise regressed metric, otherwise return this budget.

Parameters:

  • self
  • cpu_seconds float
  • peak_memory_bytes int
  • allocation_count int
  • serialization_bytes int

Returns: Self