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).

参数:
  • func (Callable[Ellipsis, float])

  • name (str | None)

  • kwargs (Any)

返回类型:

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.

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

  • verbose (bool)

返回类型:

None