pybe.wrappers#
Decorator for the function to be benchmarked
Includes
timer (track time for each iteration)
- pybe.wrappers.timer(func)[source]#
Track the time needed for each iteration
Store the time needed as additional output with name (i.e. key) “time”
- Parameters:
func (Callable[..., Dict[Union[str, float], float]]) – function to be benchmarked which takes either a string or float as input and returns a float as output
- Returns:
function to be benchmarked with additional time needed as output
- Return type:
Callable[…, Dict[Union[str, float], float]]
Examples