stats#

Dataset.stats() → str[source]#

Returns a string containing execution timing information.

Note that this does not trigger execution, so if the dataset has not yet executed, an empty string is returned.

Examples:

>>> import ray
>>> ds = ray.data.range(10)
>>> ds.stats()
''
>>> ds = ds.materialize()
>>> print(ds.stats())
Operator 1 ReadRange...: ... tasks executed, ... blocks produced in ...
* Remote wall time: ...
Returns:

A string containing execution timing information, or an empty string if the dataset has not been executed.

Return type:

str