cupyx.profiler._time._PerfCaseResult#

class cupyx.profiler._time._PerfCaseResult(name, ts, devices)[source]#

An obscure object encompassing timing results recorded by benchmark(). Simple statistics can be obtained by converting an instance of this class to a string.

Warning

This API is currently experimental and subject to change in future releases.

Methods

to_str(show_gpu=False)[source]#
__eq__(value, /)#

Return self==value.

__ne__(value, /)#

Return self!=value.

__lt__(value, /)#

Return self<value.

__le__(value, /)#

Return self<=value.

__gt__(value, /)#

Return self>value.

__ge__(value, /)#

Return self>=value.

Attributes

cpu_times#

A numpy.ndarray of shape (n_repeat,), holding times spent on CPU in seconds.

These values are delta of the host-side performance counter (time.perf_counter()) between each repeat step.

gpu_times#

A numpy.ndarray of shape (len(devices), n_repeat), holding times spent on GPU in seconds.

These values are measured using cudaEventElapsedTime with events recoreded before/after each repeat step.