tilelang.testing.perf_regression¶

Classes¶

Functions¶

process_func(func[, name])

Execute a single perf function and record its latency.

regression([prefixes, verbose])

Run entrypoints in the caller module and print a markdown table.

Module Contents¶

class tilelang.testing.perf_regression.PerfResult¶
name: str¶
latency: float¶
tilelang.testing.perf_regression.process_func(func, name=None, /, **kwargs)¶

Execute a single perf function and record its latency.

func is expected to return a positive latency scalar (seconds or ms; we treat it as an opaque number, only ratios matter for regression).

Parameters:
  • func (Callable[Ellipsis, float])

  • name (str | None)

  • kwargs (Any)

Return type:

None

tilelang.testing.perf_regression.regression(prefixes=('regression_',), verbose=True)¶

Run entrypoints in the caller module and print a markdown table.

This is invoked by many example scripts.

Parameters:
  • prefixes (collections.abc.Sequence[str])

  • verbose (bool)

Return type:

None