Testing
 src.utils.testing.time_function(func: Callable) -> Callable 
 Print the execution time in seconds of any decorated function.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| func | Callable | The wrapped function. | required | 
Source code in src\utils\testing.py
 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |  | 
 src.utils.testing.test_execution_time(funcs: list[tuple[Callable, list[Any]]], iterations: int = 1000, reset_func: Optional[Callable] = None) -> None 
 Test the execution time of a new function against an older function.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| funcs | list[tuple[Callable, list[Any]]] | List of tuples containing a func to test and args to pass to it. | required | 
| iterations | int | Number of calls to each function to perform. | 1000 | 
| reset_func | Callable | None | Optional function to call to reset app state between actions. | None | 
Source code in src\utils\testing.py
 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |  |